Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7623


Ignore:
Timestamp:
Nov 6, 2010, 5:09:15 PM (14 years ago)
Author:
rgrieder
Message:

Cosmetic changes.

File:
1 edited

Legend:

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

    r7622 r7623  
    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                 }
    95                
     94
    9695#elif defined(ORXONOX_PLATFORM_APPLE)
    9796        char buffer[1024];
     
    126125#endif
    127126
    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
    133130        /////////////////////
    134131        // SET MODULE PATH //
    135132        /////////////////////
    136                
     133
    137134        if (bf::exists(executablePath_ / "orxonox_dev_build.keep_me"))
    138135        {
Note: See TracChangeset for help on using the changeset viewer.