Override Cocoa app lifecycle defined by SDL

This commit is contained in:
Phil Marell
2021-07-24 16:32:58 +10:00
parent f16ffa0c4c
commit 00488c6fea
8 changed files with 126 additions and 0 deletions

View File

@@ -20,6 +20,7 @@
#include "IGpVOSEventQueue.h"
#include <string>
#include "MacInit.h"
GpXGlobals g_gpXGlobals;
@@ -40,7 +41,11 @@ SDLMAIN_DECLSPEC int SDL_main(int argc, char *argv[])
enableLogging = true;
}
#ifndef __MACOS__
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER) < 0)
#else
if (MacInit())
#endif
return -1;
GpFileSystem_X::GetInstance()->Init();