1
0
mirror of synced 2024-11-14 06:57:34 +01:00

show error for unsupported konami games

This commit is contained in:
nibs 2020-02-27 01:48:19 -05:00
parent 32f47f1e18
commit 5f51800082
2 changed files with 9 additions and 1 deletions

View File

@ -26,6 +26,14 @@ void GameDetect::DetectCurrentGame(bool konami)
if (file_exists("popn.dll"))
KonamiGame = KonamiGame::HelloPopnMusic;
if (KonamiGame == KonamiGame::None)
{
MessageBoxA(0, "Unsupported Konami Game!", "Error", MB_ICONERROR);
Sleep(100);
ExitProcess(0);
return;
}
return;
}
uint32_t crcResult = GetCRC32(GetModuleHandle(nullptr), 0x400);

View File

@ -95,7 +95,7 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReser
{
if (ul_reason_for_call == DLL_PROCESS_ATTACH)
{
// SpiceTools
// SpiceTools detection
if (GameDetect::file_exists("spice.exe") || GameDetect::file_exists("spice64.exe"))
{
GameDetect::DetectCurrentGame(true);