Skip to content

Commit

Permalink
VC TxdStore Limit adjuster (#52)
Browse files Browse the repository at this point in the history
* VC TxdStore limit adjuster

* VC Limit Adjuster improved
  • Loading branch information
EightyVice authored Jul 20, 2021
1 parent d46121d commit 9c77280
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/limits/Misc/TxdStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,20 @@ class TxdStoreIII : public SimpleAdjuster
WriteMemory(0x592F59 + 1, n, true);
}
} TxdStoreIII;

class TxdStoreVC : public SimpleAdjuster {
public:
const char* GetLimitName() { return GetGVM().IsVC() ? "TxdStore" : nullptr; }
void ChangeLimit(int, const std::string& value)
{
int n = std::stoi(value);
WriteMemory(0x58102D + 0, n, true);
WriteMemory(0x41065D + 2, n, true);
WriteMemory(0x580FD4 + 2, n, true);
WriteMemory(0x61DAA5 + 1, n, true);
WriteMemory(0x61DCFA + 2, n, true);
WriteMemory(0x61DD39 + 1, n, true);
WriteMemory(0x61D98B + 1, n, true);

}
} TxdStoreVC;

0 comments on commit 9c77280

Please sign in to comment.