Changeset 8071 for code/branches/kicklib/src/libraries/core/PathConfig.cc
- Timestamp:
- Mar 14, 2011, 3:53:38 AM (13 years ago)
- Location:
- code/branches/kicklib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib
-
code/branches/kicklib/src/libraries/core/PathConfig.cc
r8066 r8071 97 97 #elif defined(ORXONOX_PLATFORM_APPLE) 98 98 char buffer[1024]; 99 u nsigned longpath_len = 1023;99 uint32_t path_len = 1023; 100 100 if (_NSGetExecutablePath(buffer, &path_len)) 101 101 ThrowException(General, "Could not retrieve executable path."); … … 127 127 #endif 128 128 129 executablePath_ = bf::path(buffer); 130 #ifndef ORXONOX_PLATFORM_APPLE 131 executablePath_ = executablePath_.branch_path(); // remove executable name 132 #endif 129 // Remove executable filename 130 executablePath_ = bf::path(buffer).branch_path(); 133 131 134 132 ///////////////////// … … 208 206 209 207 // Get user directory 210 # ifdef ORXONOX_PLATFORM_UNIX /* Apple? */208 #ifdef ORXONOX_PLATFORM_UNIX 211 209 char* userDataPathPtr(getenv("HOME")); 212 # else 210 #elif ORXONOX_PLATFORM_APPLE 211 char* userDataPathPtr(getenv("HOME")); 212 #else 213 213 char* userDataPathPtr(getenv("APPDATA")); 214 # 214 #endif 215 215 if (userDataPathPtr == NULL) 216 216 ThrowException(General, "Could not retrieve user data path.");
Note: See TracChangeset
for help on using the changeset viewer.