-
Notifications
You must be signed in to change notification settings - Fork 26
/
FrameLimit.cpp
41 lines (35 loc) · 1.13 KB
/
FrameLimit.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* FrameLimit Adjuster
*
*/
#include "LimitAdjuster.h"
class FrameLimitSA : public SimpleAdjuster
{
public:
const char* GetLimitName() { return GetGVM().IsSA()? "FrameLimit" : nullptr; }
void ChangeLimit(int, const std::string& value)
{
injector::WriteMemory(0x619626, std::stoi(value), true);
injector::WriteMemory(0xC1704C, std::stoi(value), true);
}
} FrameLimitSA;
class FrameLimitVC : public SimpleAdjuster
{
public:
const char* GetLimitName() { return GetGVM().IsVC() ? "FrameLimit" : nullptr; }
void ChangeLimit(int, const std::string& value)
{
injector::WriteMemory(0x602D68, std::stoi(value), true);
injector::WriteMemory(0x9B48EC, std::stoi(value), true);
}
} FrameLimitVC;
class FrameLimitIII : public SimpleAdjuster
{
public:
const char* GetLimitName() { return GetGVM().IsIII() ? "FrameLimit" : nullptr; }
void ChangeLimit(int, const std::string& value)
{
injector::WriteMemory(0x584C78, std::stoi(value), true);
injector::WriteMemory(0x8F4374, std::stoi(value), true);
}
} FrameLimitIII;