show error for unsupported konami games
This commit is contained in:
parent
32f47f1e18
commit
5f51800082
@ -26,6 +26,14 @@ void GameDetect::DetectCurrentGame(bool konami)
|
|||||||
if (file_exists("popn.dll"))
|
if (file_exists("popn.dll"))
|
||||||
KonamiGame = KonamiGame::HelloPopnMusic;
|
KonamiGame = KonamiGame::HelloPopnMusic;
|
||||||
|
|
||||||
|
if (KonamiGame == KonamiGame::None)
|
||||||
|
{
|
||||||
|
MessageBoxA(0, "Unsupported Konami Game!", "Error", MB_ICONERROR);
|
||||||
|
Sleep(100);
|
||||||
|
ExitProcess(0);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
uint32_t crcResult = GetCRC32(GetModuleHandle(nullptr), 0x400);
|
uint32_t crcResult = GetCRC32(GetModuleHandle(nullptr), 0x400);
|
||||||
|
@ -95,7 +95,7 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReser
|
|||||||
{
|
{
|
||||||
if (ul_reason_for_call == DLL_PROCESS_ATTACH)
|
if (ul_reason_for_call == DLL_PROCESS_ATTACH)
|
||||||
{
|
{
|
||||||
// SpiceTools
|
// SpiceTools detection
|
||||||
if (GameDetect::file_exists("spice.exe") || GameDetect::file_exists("spice64.exe"))
|
if (GameDetect::file_exists("spice.exe") || GameDetect::file_exists("spice64.exe"))
|
||||||
{
|
{
|
||||||
GameDetect::DetectCurrentGame(true);
|
GameDetect::DetectCurrentGame(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user