Fix options not loading on web/macOS/mobile clients

Oversight from f75050b0c7c743ed60403a8fafbef323df31977a
This commit is contained in:
UnknownShadow200 2022-07-08 20:15:07 +10:00
parent 202947e4a7
commit cf4104bd96

View File

@ -57,10 +57,11 @@ static void SetupProgram(int argc, char** argv) {
cc_result res; cc_result res;
Logger_Hook(); Logger_Hook();
Platform_Init(); Platform_Init();
res = Platform_SetDefaultCurrentDirectory(argc, argv);
Options_Load(); Options_Load();
Window_Init(); Window_Init();
res = Platform_SetDefaultCurrentDirectory(argc, argv);
if (res) Logger_SysWarn(res, "setting current directory"); if (res) Logger_SysWarn(res, "setting current directory");
Platform_LogConst("Starting " GAME_APP_NAME " .."); Platform_LogConst("Starting " GAME_APP_NAME " ..");
String_InitArray(Server.Address, ipBuffer); String_InitArray(Server.Address, ipBuffer);