Fix some Daytona3 and APM3
Fix some Daytona3 and APM3
This commit is contained in:
parent
167cb87ee8
commit
6373c099ed
@ -1223,4 +1223,12 @@ static InitFunction initFuncDengekiBunkoFC([]()
|
|||||||
|
|
||||||
}, GameID::DengekiBunkoFC);
|
}, GameID::DengekiBunkoFC);
|
||||||
|
|
||||||
|
static InitFunction initFuncBladeStrangesAPM3([]()
|
||||||
|
{
|
||||||
|
HookAPM3(L"SDFD");
|
||||||
|
|
||||||
|
DWORD_PTR mainModuleBase = (DWORD_PTR)GetModuleHandle(0);
|
||||||
|
|
||||||
|
}, GameID::BladeStrangesAPM3);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -339,6 +339,10 @@ static InitFunction Daytona3Func([]()
|
|||||||
{
|
{
|
||||||
SetCursorPos(20000, 20000);
|
SetCursorPos(20000, 20000);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
injector::MakeNOP(0x004DBB62, 8);
|
||||||
|
}
|
||||||
|
|
||||||
std::string FFBDeadzoneString = config["General"]["FFB Deadzone Percent"];
|
std::string FFBDeadzoneString = config["General"]["FFB Deadzone Percent"];
|
||||||
int FFBDeadzone = std::stoi(FFBDeadzoneString);
|
int FFBDeadzone = std::stoi(FFBDeadzoneString);
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
#define D3D11_NO_HELPERS
|
#define D3D11_NO_HELPERS
|
||||||
#define INITGUID
|
#define INITGUID
|
||||||
#include <StdInc.h>
|
#include <StdInc.h>
|
||||||
#ifdef _M_AMD64
|
|
||||||
#include "Utility/InitFunction.h"
|
#include "Utility/InitFunction.h"
|
||||||
#pragma optimize("", off)
|
#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)
|
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;
|
return;
|
||||||
|
|
||||||
|
#ifndef _M_AMD64
|
||||||
|
// Hook only Daytona on x86 for now
|
||||||
|
if (GameDetect::currentGame != GameID::Daytona3)
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
// Make local variables for speed
|
// Make local variables for speed
|
||||||
Windowed = ToBool(config["General"]["Windowed"]);
|
Windowed = ToBool(config["General"]["Windowed"]);
|
||||||
|
|
||||||
@ -305,4 +309,3 @@ static InitFunction initFunc([]()
|
|||||||
if (Windowed || FpsLimiterEnable || DisableVSync)
|
if (Windowed || FpsLimiterEnable || DisableVSync)
|
||||||
InitDXGIWindowHook();
|
InitDXGIWindowHook();
|
||||||
});
|
});
|
||||||
#endif
|
|
@ -651,6 +651,9 @@ void GameDetect::DetectCurrentGame()
|
|||||||
case 0xcf741456: // Update 1
|
case 0xcf741456: // Update 1
|
||||||
SetGameId(GameID::DengekiBunkoFC, "Dengeki Bunko: Fighting Climax");
|
SetGameId(GameID::DengekiBunkoFC, "Dengeki Bunko: Fighting Climax");
|
||||||
break;
|
break;
|
||||||
|
case 0xd8dd1127:
|
||||||
|
SetGameId(GameID::BladeStrangesAPM3, "Blade Strangers APM3");
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
#ifdef _AMD64_
|
#ifdef _AMD64_
|
||||||
case 0xf322d053:
|
case 0xf322d053:
|
||||||
|
@ -131,5 +131,6 @@ enum class GameID
|
|||||||
Kasiori,
|
Kasiori,
|
||||||
GGXRd,
|
GGXRd,
|
||||||
BlazBlueCrossTagBattle,
|
BlazBlueCrossTagBattle,
|
||||||
DengekiBunkoFC
|
DengekiBunkoFC,
|
||||||
|
BladeStrangesAPM3
|
||||||
};
|
};
|
Loading…
x
Reference in New Issue
Block a user