1
0
mirror of synced 2025-01-20 09:42:49 +01:00

Fix some Daytona3 and APM3

Fix some Daytona3 and APM3
This commit is contained in:
Reaver 2021-11-18 02:08:37 +02:00
parent 167cb87ee8
commit 6373c099ed
5 changed files with 23 additions and 4 deletions

View File

@ -1223,4 +1223,12 @@ static InitFunction initFuncDengekiBunkoFC([]()
}, GameID::DengekiBunkoFC);
static InitFunction initFuncBladeStrangesAPM3([]()
{
HookAPM3(L"SDFD");
DWORD_PTR mainModuleBase = (DWORD_PTR)GetModuleHandle(0);
}, GameID::BladeStrangesAPM3);
#endif

View File

@ -339,6 +339,10 @@ static InitFunction Daytona3Func([]()
{
SetCursorPos(20000, 20000);
}
else
{
injector::MakeNOP(0x004DBB62, 8);
}
std::string FFBDeadzoneString = config["General"]["FFB Deadzone Percent"];
int FFBDeadzone = std::stoi(FFBDeadzoneString);

View File

@ -2,7 +2,6 @@
#define D3D11_NO_HELPERS
#define INITGUID
#include <StdInc.h>
#ifdef _M_AMD64
#include "Utility/InitFunction.h"
#pragma optimize("", off)
@ -284,6 +283,11 @@ static InitFunction initFunc([]()
if (GameDetect::currentGame == GameID::PokkenTournament || GameDetect::currentGame == GameID::PokkenTournament26 || GameDetect::currentGame == GameID::SchoolOfRagnarok || GameDetect::currentGame == GameID::TER || GameDetect::currentGame == GameID::Tekken7Update00 || GameDetect::currentGame == GameID::SFV)
return;
#ifndef _M_AMD64
// Hook only Daytona on x86 for now
if (GameDetect::currentGame != GameID::Daytona3)
return;
#endif
// Make local variables for speed
Windowed = ToBool(config["General"]["Windowed"]);
@ -305,4 +309,3 @@ static InitFunction initFunc([]()
if (Windowed || FpsLimiterEnable || DisableVSync)
InitDXGIWindowHook();
});
#endif

View File

@ -651,6 +651,9 @@ void GameDetect::DetectCurrentGame()
case 0xcf741456: // Update 1
SetGameId(GameID::DengekiBunkoFC, "Dengeki Bunko: Fighting Climax");
break;
case 0xd8dd1127:
SetGameId(GameID::BladeStrangesAPM3, "Blade Strangers APM3");
break;
#endif
#ifdef _AMD64_
case 0xf322d053:

View File

@ -131,5 +131,6 @@ enum class GameID
Kasiori,
GGXRd,
BlazBlueCrossTagBattle,
DengekiBunkoFC
DengekiBunkoFC,
BladeStrangesAPM3
};