mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-29 23:51:49 +00:00
MacOS: set basepath to executablePath rather than one path above bundle
Fixes an issue where the base path would typically be set to /Application if the bundle is installed into /Application/dhewm3.app. Now the default basepath will be /Application/dhewm3.app/Content/MacOS/ where the dhewm3 binary is located.
This commit is contained in:
parent
2e71b99ee0
commit
30757ef2a0
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ int SDL_main( int argc, char *argv[] ) {
|
|||
Sys_Error("Could not access application resources");
|
||||
|
||||
// DG: set exe_path so Posix_InitSignalHandlers() can call Posix_GetExePath()
|
||||
SDL_strlcpy(exe_path, [ [ [ NSBundle mainBundle ] bundlePath ] cString ], sizeof(exe_path));
|
||||
SDL_strlcpy(exe_path, [ [ [ NSBundle mainBundle ] executablePath ] cString ], sizeof(exe_path));
|
||||
// same for save_path for Posix_GetSavePath()
|
||||
D3_snprintfC99(save_path, sizeof(save_path), "%s/Library/Application Support/dhewm3", [NSHomeDirectory() cString]);
|
||||
// and preinitializing basepath is easy enough so do that as well
|
||||
|
|
Loading…
Reference in a new issue