1
0
mirror of synced 2025-02-01 04:15:50 +01:00

- APM3: Implement getMatchingGroup, add Blade Strangers

- APM3: Implement getMatchingGroup, add multiple versions of Blade Strangers
This commit is contained in:
Nezarn 2022-01-12 12:11:36 +01:00
parent a6e66b3050
commit 74091ccf6e
3 changed files with 24 additions and 2 deletions

View File

@ -16,7 +16,7 @@ static bool ApmSystemSetting_getClosingTimesReturnValue = false;
static char ApmSystemSetting_getEmoneySettingReturnValue = 0;
static bool ApmSystemSetting_getFixedTitleReturnValue = false;
static char ApmSystemSetting_getGamePadSettingReturnValue = 0;
static bool ApmSystemSetting_getMatchingGroupReturnValue = false;
static bool ApmSystemSetting_getMatchingGroupReturnValue = true;
static char ApmSystemSetting_getTimeToClosingTimeReturnValue = 0;
static char ApmSystemSetting_getUiSettingReturnValue = 0;
static bool Core_exitGameReturnValue = false;
@ -115,6 +115,11 @@ bool CALLPLEB ApmSystemSetting_getMatchingGroup(MatchingGroup* matchingGroup)
#ifdef _LOGAPM3
info(true, "ApmSystemSetting_getMatchingGroup");
#endif
MatchingGroup _matchingGroup = { 'A', 1 }; // TODO: Make this configurable, improve this
*matchingGroup->alphabet = *_matchingGroup.alphabet;
*matchingGroup->number = *_matchingGroup.number;
return ApmSystemSetting_getMatchingGroupReturnValue;
}
@ -1117,6 +1122,13 @@ static InitFunction initOtoshuDXTestFunc([]()
}, GameID::OtoshuDX);
static InitFunction initFuncBladeStrangesAPM3Test([]()
{
HookAPM3(L"SDFD");
DWORD_PTR mainModuleBase = (DWORD_PTR)GetModuleHandle(0);
}, GameID::BladeStrangesAPM3Test);
#else
@ -1241,6 +1253,10 @@ static InitFunction initFuncBladeStrangesAPM3([]()
DWORD_PTR mainModuleBase = (DWORD_PTR)GetModuleHandle(0);
injector::WriteMemory<BYTE>(hook::get_pattern("75 47 53 8B 1D ? ? ? ?"), 0xEB, true); // Skip emoneyUI check
AllnetAuth_isGoodReturnValue = false;
}, GameID::BladeStrangesAPM3);
static InitFunction initFuncKoihimeEnbuAPM3([]()

View File

@ -652,7 +652,9 @@ void GameDetect::DetectCurrentGame()
case 0xcf741456: // Update 1
SetGameId(GameID::DengekiBunkoFC, "Dengeki Bunko: Fighting Climax");
break;
case 0xd8dd1127:
case 0xd8dd1127: // Base
case 0x29028329: // Update 1
case 0x199af397: // Update 2
SetGameId(GameID::BladeStrangesAPM3, "Blade Strangers APM3");
break;
case 0x9d03d54b: //Koihime Enbu Base
@ -781,6 +783,9 @@ void GameDetect::DetectCurrentGame()
case 0x714d4700:
SetGameId(GameID::OtoshuDX, "Otoshu DX");
break;
case 0xb01b4eb8:
SetGameId(GameID::BladeStrangesAPM3Test, "Blade Strangers APM3 Test Menu");
break;
#endif
default:

View File

@ -126,6 +126,7 @@ enum class GameID
BlazBlueCrossTagBattle,
DengekiBunkoFC,
BladeStrangesAPM3,
BladeStrangesAPM3Test,
KoihimeEnbuAPM3,
UnderNightAPM3,
OtoshuDX