- Timestamp:
- Nov 6, 2010, 5:09:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ois_update/src/libraries/core/PathConfig.cc
r7622 r7623 90 90 // get executable module 91 91 TCHAR buffer[1024]; 92 if (GetModuleFileName(NULL, buffer, 1024) == 0) {92 if (GetModuleFileName(NULL, buffer, 1024) == 0) 93 93 ThrowException(General, "Could not retrieve executable path."); 94 } 95 94 96 95 #elif defined(ORXONOX_PLATFORM_APPLE) 97 96 char buffer[1024]; … … 126 125 #endif 127 126 128 executablePath_ = bf::path(buffer); 129 //#ifndef ORXONOX_PLATFORM_APPLE 130 executablePath_ = executablePath_.branch_path(); // remove executable name 131 //#endif 132 127 // Remove executable filename 128 executablePath_ = bf::path(buffer).branch_path(); 129 133 130 ///////////////////// 134 131 // SET MODULE PATH // 135 132 ///////////////////// 136 133 137 134 if (bf::exists(executablePath_ / "orxonox_dev_build.keep_me")) 138 135 {
Note: See TracChangeset
for help on using the changeset viewer.