1
0
mirror of synced 2024-11-14 23:07:36 +01:00

Pengo at least boots now

Pengo at least boots now, fixed version emulation issue.
This commit is contained in:
Nico Giansanti 2021-07-08 01:16:50 +03:00
parent 5ab9635f32
commit d7e09c752f

View File

@ -769,7 +769,7 @@ wchar_t* System_getBoardId()
#ifdef _DEBUG
info(true, "System_getBoardId");
#endif
static wchar_t lol[64];
static wchar_t lol[64] = L"REAVERHARMBOYBAND";
return lol;
}
@ -781,13 +781,15 @@ char* System_getGameId()
return APM3GameId;
}
// Make this thing to make sure mem around is not taken. Guess it's __int64 *? works like this fine lol
char version[256] = { 0 };
int* System_getGameVersion()
{
#ifdef _DEBUG
info(true, "System_getGameVersion");
#endif
static int version = 1;
return &version;
return (int *)version;
}
wchar_t* System_getKeychipId()
@ -1066,8 +1068,6 @@ static InitFunction initFunc([]()
// Skip keyboard
injector::MakeRET(mainModuleBase + 0x15CBA0);
injector::MakeRET(mainModuleBase + 0x24CD0);
}, GameID::Pengoe5);
static InitFunction initFuncPengoe511([]()
@ -1082,8 +1082,6 @@ static InitFunction initFuncPengoe511([]()
// Skip keyboard
injector::MakeRET(mainModuleBase + 0x16ADB0); // 48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 41 54 41 55 41 56 41 57 48 81 EC A0 00 00 00
injector::MakeRET(mainModuleBase + 0x24EB0); // 4C 89 44 24 18 4C 89 4C 24 20 53 55 56 57 48 83 EC 38 49 8B F0 48 8D 6C 24 78 48 8B DA 48 8B F9
}, GameID::Pengoe511);
static InitFunction initTestFunc([]()
@ -1099,8 +1097,6 @@ static InitFunction initTestFunc([]()
Sequence_isTestReturnValue = 1;
injector::MakeRET(mainModuleBase + 0x240C0);
}, GameID::Pengoe5_Test);
static InitFunction initVF5Func([]()