Fix Mac build

This commit is contained in:
Daniel Gibson 2022-01-17 15:31:10 +01:00
parent eff9fd6ac3
commit d34832e4fc

View file

@ -196,7 +196,7 @@ int SDL_main( int argc, char *argv[] ) {
// DG: set exe_path so Posix_InitSignalHandlers() can call Posix_GetExePath()
SDL_strlcpy(exe_path, [ [ [ NSBundle mainBundle ] bundlePath ] cString ], sizeof(exe_path));
// same for save_path for Posix_GetSavePath()
snprintf(save_path, sizeof(save_path), "%s/Library/Application Support/dhewm3", [NSHomeDirectory() cString]);
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
{
char* snap;