1
0
mirror of synced 2024-11-15 07:17:35 +01:00

Add support for Rolling Gunner 2.0 and 2.1

- Add support for Rolling Gunner 2.0 and 2.1
- Improve GetAppRootPath call
This commit is contained in:
Reaver 2021-08-27 01:04:11 +03:00
parent 2d33a8ba45
commit 739b2a25d2
3 changed files with 41 additions and 3 deletions

View File

@ -388,12 +388,14 @@ DWORD_PTR CALLPLEB NetworkProperty_getAddressValue()
return NetworkProperty_getAddressValueReturnValue;
}
DWORD_PTR CALLPLEB System_getAppRootPath()
static char* gameDir = ".\\";
char *CALLPLEB System_getAppRootPath()
{
#ifdef _LOGAPM3
info(true, "System_getAppRootPath");
#endif
return System_getAppRootPathReturnValue;
return gameDir;
}
struct StandardSerialID
@ -1020,4 +1022,32 @@ static InitFunction initFuncUmifresh02([]()
injector::WriteMemory<BYTE>(mainModuleBase + 0x1806BF, 0xEB, true); // Skip some credit check idfk
}, GameID::Umifresh);
static int __stdcall ValidateDongle(int somearg)
{
return 0;
}
static InitFunction initFuncRollingGunner20([]()
{
HookAPM3();
wcscpy(APM3GameId, L"SDGW");
DWORD_PTR mainModuleBase = (DWORD_PTR)GetModuleHandle(0);
// I am crazy and not care about serial check
injector::MakeJMP(mainModuleBase + 0xB6290, ValidateDongle);
}, GameID::RollingGunner20);
static InitFunction initFuncRollingGunner21([]()
{
HookAPM3();
wcscpy(APM3GameId, L"SDGW");
DWORD_PTR mainModuleBase = (DWORD_PTR)GetModuleHandle(0);
// I am crazy and not care about serial check
injector::MakeJMP(mainModuleBase + 0xB6140, ValidateDongle);
}, GameID::RollingGunner21);
#endif

View File

@ -616,6 +616,12 @@ void GameDetect::DetectCurrentGame()
case 0x79fa2f58: // Umihara KawaseFresh!ForAC
SetGameId(GameID::Umifresh, "Umihara KawaseFresh! For AC");
break;
case 0x1ff0b15b: // Rolling Gunner 2.0
SetGameId(GameID::RollingGunner20, "Rolling Gunner 2.0");
break;
case 0x3c367b7b: // Rolling Gunner 2.1
SetGameId(GameID::RollingGunner21, "Rolling Gunner 2.1");
break;
#endif
#ifdef _AMD64_
case 0xf322d053:

View File

@ -114,5 +114,7 @@ enum class GameID
Doa6Test,
WMMT5DXPlus,
GGS,
Umifresh
Umifresh,
RollingGunner20,
RollingGunner21
};