Changeset 2534
- Timestamp:
- Dec 28, 2008, 7:12:44 PM (16 years ago)
- Location:
- code/branches/buildsystem2
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/src/orxonox/gamestates/GSGraphics.cc
r2512 r2534 31 31 32 32 #include <fstream> 33 #include <boost/filesystem.hpp> 34 33 35 #include <OgreConfigFile.h> 34 36 #include <OgreFrameListener.h> … … 371 373 ogrePluginsFolder_ = "."; 372 374 373 #if ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32 374 convertToWindowsPath(&ogrePluginsFolder_); 375 #else 376 convertToUnixPath(&ogrePluginsFolder_); 377 #endif 378 375 boost::filesystem::path folder(ogrePluginsFolder_); 379 376 // Do some SubString magic to get the comma separated list of plugins 380 377 SubString plugins(ogrePlugins_, ",", " ", false, 92, false, 34, false, 40, 41, false, '\0'); 381 378 for (unsigned int i = 0; i < plugins.size(); ++i) 382 ogreRoot_->loadPlugin( ogrePluginsFolder_ + plugins[i]);379 ogreRoot_->loadPlugin((folder / plugins[i]).native_file_string()); 383 380 } 384 381 -
code/branches/buildsystem2/src/util/String.cc
r2509 r2534 493 493 } 494 494 } 495 496 /**497 @brief Converts a path string to windows with "\" instead of "/".498 @param str String pointer to be manipulated499 */500 void convertToWindowsPath(std::string* str)501 {502 std::string& path = *str;503 // replace all occurences of "/" with "\"504 for (unsigned int i = 0; i < path.length(); ++i)505 {506 if (path[i] == '/')507 path[i] = '\\';508 }509 // add an extra '\\' at the end to make it a complete path510 if (path != "" && path[path.length() - 1] != '\\')511 path.append("\\");512 }513 514 /**515 @brief Converts a path string to unix with "/" instead of "\".516 @param str String pointer to be manipulated517 */518 void convertToUnixPath(std::string* str)519 {520 std::string& path = *str;521 // replace all occurences of "\" with "/"522 for (unsigned int i = 0; i < path.length(); ++i)523 {524 if (path[i] == '\\')525 path[i] = '/';526 }527 // add an extra '\\' at the end to make it a complete path528 if (path != "" && path[path.length() - 1] != '/')529 path.append("/");530 } -
code/branches/buildsystem2/src/util/String.h
r2509 r2534 81 81 } 82 82 83 _UtilExport void convertToWindowsPath(std::string* str);84 _UtilExport void convertToUnixPath(std::string* str);85 86 83 #endif /* _Util_String_H__ */ -
code/branches/buildsystem2/visual_studio/vc8/core.vcproj
r2520 r2534 441 441 </File> 442 442 <File 443 RelativePath="..\..\src\core\tolua_bind.h"444 >445 </File>446 <File447 443 RelativePath="$(IntDir)\ToluaBindCore.h" 448 444 > -
code/branches/buildsystem2/visual_studio/vc8/orxonox.vcproj
r2520 r2534 843 843 </File> 844 844 <File 845 RelativePath="..\..\src\orxonox\tolua_bind.h"846 >847 </File>848 <File849 845 RelativePath="$(IntDir)\ToluaBindOrxonox.h" 850 846 >
Note: See TracChangeset
for help on using the changeset viewer.