• Sam Lantinga's avatar
    I noticed MacOSX SDL sets up working directory to parent of executable. · 6c967b93
    Sam Lantinga authored
    On BeOS is should setup it the same way, but it only does when Tracker
    wasn't restarted.
    
    I checked code and it looks like a hack to me :(
    It looks for env variable and than comapres it to default when OpenTracker
    was started after boot, and wasn't restarted. That's probably ok, for that
    exact case. Unfortunetly that variable isn't always like that. For
    example, after Tracker crashes and is restarted, env variable most
    probably is different (depends on how Tracker was restarted, by what
    application, etc... for example: i have launcher application from which i
    can restart Tracker, and after that nev variable points to that
    application's directory, not Tracker's).
    
    --HG--
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40856
    6c967b93
SDL_BeApp.cc 2.92 KB