1
0
mirror of synced 2025-02-01 12:17:55 +01:00

SkullGirls added

Stuck at waiting for NESYS, added new RegSetValueExW support for EventModeEnable.
This commit is contained in:
Reaver 2018-09-10 17:54:07 +03:00
parent 67b0fe2940
commit d242004326
2 changed files with 12 additions and 1 deletions

View File

@ -6,6 +6,7 @@
DWORD GameResult = 0;
DWORD IOErrorCoin = 0;
DWORD IOErrorCredit = 0;
DWORD EventModeEnable = 0;
DWORD FillDwordInformation(const char *setting, const char *subkey, DWORD defaultValue)
{
@ -99,6 +100,11 @@ LSTATUS __stdcall RegSetValueExWWrap(
PromptError(IOErrorCredit, 2);
}
}
else if (wcscmp(lpValueName, L"EventModeEnable") == 0)
{
// USED IN SKULLGIRLS
EventModeEnable = *(DWORD*)lpData;
}
else
{
MessageBoxA(0, "Unknown RegSetValueExW for NESiCA, Please contact devs!", "Error unhandled registry change", 0);
@ -201,7 +207,7 @@ LSTATUS __stdcall RegQueryValueExWWrap(
}
else if (wcscmp(lpValueName, L"EventModeEnable") == 0) // REG_DWORD
{
*lpData = FillDwordInformation("NESiCA", "EventModeEnable", 0); // 0 = DISABLE / 1 = ENABLE
*lpData = FillDwordInformation("NESiCA", "EventModeEnable", EventModeEnable); // 0 = DISABLE / 1 = ENABLE
*lpcbData = 4;
}
else if (wcscmp(lpValueName, L"UserSelectEnable") == 0) // REG_DWORD

View File

@ -62,6 +62,11 @@ void GameDetect::DetectCurrentGame()
NesicaKey = NesicaKey::None;
isNesica = true;
break;
case 0xae41d855:
currentGame = GameID::Nesica;
NesicaKey = NesicaKey::None;
isNesica = true;
break;
case 0x6DA10E60:
currentGame = GameID::FordRacing;
break;