1
0
mirror of synced 2024-11-14 23:07:36 +01:00

Add APM3 Titles and make some variables a bit more flexible.

Add APM3 Titles and make some variables a bit more flexible.
This commit is contained in:
Reaver 2021-11-16 00:25:45 +02:00
parent cf4e2003c9
commit d8417936ea
7 changed files with 41 additions and 6 deletions

View File

@ -1180,6 +1180,14 @@ static InitFunction initFuncAleste11([]()
}, GameID::Aleste11);
static InitFunction initFuncGGXRd([]()
{
HookAPM3(L"SDFB");
DWORD_PTR mainModuleBase = (DWORD_PTR)GetModuleHandle(0);
}, GameID::GGXRd);
static InitFunction initFuncCottonRocknRollA([]()
{
HookAPM3(L"SDHW");
@ -1197,4 +1205,14 @@ static InitFunction initFuncCottonRocknRollA([]()
}, GameID::CottonRocknRollA);
static InitFunction initFuncBlazBlueCrossTagBattle([]()
{
HookAPM3(L"SDFU");
Credit_getCreditReturnValue = 3;
DWORD_PTR mainModuleBase = (DWORD_PTR)GetModuleHandle(0);
}, GameID::BlazBlueCrossTagBattle);
#endif

View File

@ -4,6 +4,8 @@
#include "Functions\Global.h"
#include "Aime.h"
bool Aime_isDBAliveReturnValue = true;
bool CALLPLEB Aime_acceptConfirm()
{
#ifdef _LOGAPM3AIME

View File

@ -53,4 +53,6 @@ enum class AIME_LOG_STATUS
bool CALLPLEB Aime_sendLog(unsigned int uid, AIME_LOG_STATUS status, DWORD_PTR count);
bool CALLPLEB Aime_setLedError();
bool CALLPLEB Aime_setLedSuccess();
bool CALLPLEB Aime_start();
bool CALLPLEB Aime_start();
extern bool Aime_isDBAliveReturnValue;

View File

@ -16,11 +16,11 @@ DWORD_PTR AllnetAccounting_beginPlayReturnValue = 0;
DWORD_PTR AllnetAccounting_endPlayReturnValue = 0;
DWORD_PTR AllnetAuth_getCountryCodeReturnValue = 0;
DWORD_PTR AllnetAuth_getLocationIdReturnValue = 0;
int AllnetAuth_getLocationNicknamePartCountReturnValue = 0;
int AllnetAuth_getLocationNicknamePartCountReturnValue = 1;
DWORD_PTR AllnetAuth_getRegionCodeReturnValue = 0;
int AllnetAuth_getRegionNamePartCountReturnValue = 0;
bool AllnetAuth_isDevelopReturnValue = false;
bool AllnetAuth_isGoodReturnValue = false;
bool AllnetAuth_isGoodReturnValue = true;
DWORD_PTR CALLPLEB AllnetAccounting_beginPlay(unsigned int a1)
{
@ -133,5 +133,5 @@ bool CALLPLEB AllnetAuth_isGood()
#ifdef _LOGAPM3AUTH
info(true, "AllnetAuth_isGood");
#endif
return true;
return AllnetAuth_isGoodReturnValue;
}

View File

@ -385,7 +385,8 @@ static InitFunction initFunc([]()
|| GameDetect::currentGame == GameID::FNFSB2
|| GameDetect::currentGame == GameID::JLeague
|| GameDetect::currentGame == GameID::VF5Esports
|| GameDetect::currentGame == GameID::VF5EsportsTest)
|| GameDetect::currentGame == GameID::VF5EsportsTest
|| GameDetect::currentGame == GameID::BlazBlueCrossTagBattle)
return;
MH_Initialize();

View File

@ -637,6 +637,16 @@ void GameDetect::DetectCurrentGame()
case 0xd426de40: // Cotton Rock n Roll A
SetGameId(GameID::CottonRocknRollA, "Cotton Rock n Roll A");
break;
case 0xed8af9f8: // Guilty Gear Xrd REV APM3 Edition
SetGameId(GameID::GGXRd, "Guilty Gear Xrd REV APM3 Edition");
break;
case 0x817d4c50:
case 0x5883e93d:
case 0x4471e6a0:
case 0x5bc0c88b:
case 0xb1cb5260:
SetGameId(GameID::BlazBlueCrossTagBattle, "BLAZBLUE CROSS TAG BATTLE");
break;
#endif
#ifdef _AMD64_
case 0xf322d053:

View File

@ -128,5 +128,7 @@ enum class GameID
CottonRocknRollA,
CottonRocknRollATest,
NosferatuLilinor,
Kasiori
Kasiori,
GGXRd,
BlazBlueCrossTagBattle
};