Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7622


Ignore:
Timestamp:
Nov 6, 2010, 4:50:15 PM (14 years ago)
Author:
youngk
Message:

Adjusted the executable path handling for Apple. Please test with other OSes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ois_update/src/libraries/core/PathConfig.cc

    r7571 r7622  
    9090        // get executable module
    9191        TCHAR buffer[1024];
    92         if (GetModuleFileName(NULL, buffer, 1024) == 0)
     92        if (GetModuleFileName(NULL, buffer, 1024) == 0){
    9393            ThrowException(General, "Could not retrieve executable path.");
    94 
     94                }
     95               
    9596#elif defined(ORXONOX_PLATFORM_APPLE)
    9697        char buffer[1024];
     
    126127
    127128        executablePath_ = bf::path(buffer);
    128 #ifndef ORXONOX_PLATFORM_APPLE
     129//#ifndef ORXONOX_PLATFORM_APPLE
    129130        executablePath_ = executablePath_.branch_path(); // remove executable name
    130 #endif
    131 
     131//#endif
     132               
    132133        /////////////////////
    133134        // SET MODULE PATH //
    134135        /////////////////////
    135 
     136               
    136137        if (bf::exists(executablePath_ / "orxonox_dev_build.keep_me"))
    137138        {
Note: See TracChangeset for help on using the changeset viewer.