Skip to content

Commit 3e8aec1

Browse files
author
sourcehold
committed
change MainGameLoop to WinMain and fix erroneous thiscall conventions
1 parent f801ec5 commit 3e8aec1

9 files changed

Lines changed: 533 additions & 534 deletions

File tree

‎src/OpenSHC/Global.func.hpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,9 +1287,9 @@ namespace Global_Func {
12871287
PlayJokeVideoBasedOnCurrentTimeAndPlayTime;
12881288

12891289
MACRO_FUNCTION_RESOLVER(
1290-
void(__stdcall*)(HINSTANCE hInstance, undefined4 param_2, char* commandLineArguments, undefined4 param_4),
1291-
false, Address::SHC_3BB0A8C1_0x0057BE10, &OpenSHC::Global::MainGameLoop)
1292-
MainGameLoop;
1290+
int(__stdcall*)(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd), false,
1291+
Address::SHC_3BB0A8C1_0x0057BE10, &OpenSHC::Global::WinMain)
1292+
WinMain;
12931293

12941294
MACRO_FUNCTION_RESOLVER(
12951295
void(__cdecl*)(ulong param_1), false, Address::SHC_3BB0A8C1_0x005816EE, &OpenSHC::Global::SetRNGSeed)

‎src/OpenSHC/Global.hpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,8 +690,7 @@ namespace Global {
690690

691691
void __stdcall PlayJokeVideoBasedOnCurrentTimeAndPlayTime();
692692

693-
void __stdcall MainGameLoop(
694-
HINSTANCE hInstance, undefined4 param_2, char* commandLineArguments, undefined4 param_4);
693+
int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd);
695694

696695
void __cdecl SetRNGSeed(ulong param_1);
697696

‎src/OpenSHC/Global/Init.func.hpp‎

Lines changed: 262 additions & 262 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)