Add stats patches
This commit is contained in:
parent
1d015e469f
commit
8a9943821f
@ -6,12 +6,7 @@ class dw final : public module
|
||||
public:
|
||||
dw()
|
||||
{
|
||||
OutputDebugStringA("+ DW\n");
|
||||
}
|
||||
|
||||
~dw()
|
||||
{
|
||||
OutputDebugStringA("- DW\n");
|
||||
// TODO Patch DW
|
||||
}
|
||||
};
|
||||
|
||||
|
18
src/module/stats.cpp
Normal file
18
src/module/stats.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
#include <std_include.hpp>
|
||||
#include "loader/module_loader.hpp"
|
||||
#include "utils/hook.hpp"
|
||||
|
||||
class stats final : public module
|
||||
{
|
||||
public:
|
||||
void post_load() override
|
||||
{
|
||||
if (module_loader::get_mode() != launcher::mode::SINGLEPLAYER) return;
|
||||
|
||||
// Disable remote storage
|
||||
utils::hook::set<BYTE>(0x663B5A, 0xEB);
|
||||
utils::hook::set<BYTE>(0x663C54, 0xEB);
|
||||
}
|
||||
};
|
||||
|
||||
REGISTER_MODULE(stats)
|
Loading…
Reference in New Issue
Block a user