fnfsb FPSfix
This commit is contained in:
parent
ed87402029
commit
406c6fb85d
@ -5,6 +5,8 @@
|
|||||||
#include <Xinput.h>
|
#include <Xinput.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <dinput.h>
|
#include <dinput.h>
|
||||||
|
#include <string>
|
||||||
|
#include <atlstr.h>
|
||||||
|
|
||||||
#pragma comment(lib, "Ws2_32.lib")
|
#pragma comment(lib, "Ws2_32.lib")
|
||||||
|
|
||||||
@ -430,4 +432,16 @@ static InitFunction FNFSBFunc([]()
|
|||||||
injector::WriteMemory<DWORD>((0x11FA18 + BaseAddress4), 0x00, true);
|
injector::WriteMemory<DWORD>((0x11FA18 + BaseAddress4), 0x00, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FPS Fix
|
||||||
|
if ((strcmp(config["General"]["FPSFix"].c_str(), "0") != 0))
|
||||||
|
{
|
||||||
|
std::string FPSstring = (LPCSTR)(config["General"]["FPSFix"].c_str());
|
||||||
|
int FPSvalue = std::stoi(FPSstring);
|
||||||
|
|
||||||
|
injector::WriteMemoryRaw((0x36560 + BaseAddress4), "\x6A", 1, true);
|
||||||
|
injector::WriteMemory<BYTE>((0x36561 + BaseAddress4), FPSvalue, true);
|
||||||
|
injector::WriteMemoryRaw((0x36562 + BaseAddress4), "\xFF\x15\xD0\x21\x62\x03", 6, true);
|
||||||
|
injector::WriteMemoryRaw((0x36568 + BaseAddress4), "\xC3", 1, true);
|
||||||
|
}
|
||||||
|
|
||||||
}, GameID::FNFSB);
|
}, GameID::FNFSB);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user