[Orxonox-commit 7079] r11696 - code/trunk/src/libraries/core
landauf at orxonox.net
landauf at orxonox.net
Wed Jan 3 11:09:13 CET 2018
Author: landauf
Date: 2018-01-03 11:09:12 +0100 (Wed, 03 Jan 2018)
New Revision: 11696
Modified:
code/trunk/src/libraries/core/ApplicationPaths.cc
Log:
whoops. must remove the extensions from the library's file name before loading it
Modified: code/trunk/src/libraries/core/ApplicationPaths.cc
===================================================================
--- code/trunk/src/libraries/core/ApplicationPaths.cc 2018-01-03 01:34:20 UTC (rev 11695)
+++ code/trunk/src/libraries/core/ApplicationPaths.cc 2018-01-03 10:09:12 UTC (rev 11696)
@@ -211,7 +211,8 @@
std::string libraryName;
if (infile >> libraryName)
{
- std::string libraryPath = directory.BF_GENERIC_STRING() + '/' + libraryName;
+ std::string libraryNameWithoutExtension = libraryName.substr(0, libraryName.find_first_of('.'));
+ std::string libraryPath = directory.BF_GENERIC_STRING() + '/' + libraryNameWithoutExtension;
paths[moduleName] = libraryPath;
}
else
More information about the Orxonox-commit
mailing list