1
0
mirror of synced 2025-02-01 04:15:50 +01:00

adds goonya fighter and puyo puyo

honestly not sure if ive done this right - especially on the apm3.cpp side of things
This commit is contained in:
Cainan 2021-06-27 01:54:31 +01:00 committed by nzgamer41
parent 9a32c3d74f
commit 4719aeb0d2
3 changed files with 29 additions and 6 deletions

View File

@ -1041,4 +1041,19 @@ static InitFunction initVF5Func([]()
}, GameID::VF5Esports); }, GameID::VF5Esports);
static InitFunction initGoonyaFunc([]()
{
HookAPM3();
strcpy(APM3GameId, "SDGX");
__int64 mainModuleBase = (__int64)GetModuleHandle(0);
}, GameID::GoonyaFighter);
static InitFunction initPuyoFunc([]()
{
HookAPM3();
strcpy(APM3GameId, "SDFF");
__int64 mainModuleBase = (__int64)GetModuleHandle(0);
}, GameID::PuyoPuyoEsports);
#endif #endif

View File

@ -647,9 +647,16 @@ void GameDetect::DetectCurrentGame()
case 0x0f98a7a2: case 0x0f98a7a2:
currentGame = GameID::Pengoe5; currentGame = GameID::Pengoe5;
break; break;
case 0x6fc27eed: case 0x6fc27eed: // Original
case 0x3b3fc3ab: // Other exe
currentGame = GameID::VF5Esports; currentGame = GameID::VF5Esports;
break; break;
case 0x1ab0f981:
currentGame = GameID::GoonyaFighter;
break;
case 0x8c30fa5a:
currentGame = GameID::PuyoPuyoEsports;
break;
#endif #endif
default: default:
#ifdef _DEBUG #ifdef _DEBUG
@ -658,9 +665,8 @@ void GameDetect::DetectCurrentGame()
info(true, "---------------------------------"); info(true, "---------------------------------");
#else #else
memset(errorBuffer, 0, 256); memset(errorBuffer, 0, 256);
sprintf_s(errorBuffer, 256, "NEW CRC: %08X", newCrcResult); sprintf_s(errorBuffer, 256, "Unsupported Executable, NEW CRC: %08X!", newCrcResult);
WritePrivateProfileStringA("Error", "Unsupported Executable", errorBuffer, ".\\teknoparrot.ini"); MessageBoxA(0, errorBuffer, "Error", MB_ICONERROR);
MessageBoxA(0, errorBuffer, "Unsupported Executable", MB_ICONERROR);
ExitProcess(0); ExitProcess(0);
#endif #endif
break; break;

View File

@ -99,5 +99,7 @@ enum class GameID
RadikalBikers, RadikalBikers,
Pengoe5, Pengoe5,
Pengoe5_Test, Pengoe5_Test,
VF5Esports VF5Esports,
GoonyaFighter,
PuyoPuyoEsports
}; };