Add stats patches

This commit is contained in:
momo5502 2018-12-24 22:22:57 +01:00
parent 1d015e469f
commit 8a9943821f
2 changed files with 19 additions and 6 deletions

View File

@ -6,12 +6,7 @@ class dw final : public module
public: public:
dw() dw()
{ {
OutputDebugStringA("+ DW\n"); // TODO Patch DW
}
~dw()
{
OutputDebugStringA("- DW\n");
} }
}; };

18
src/module/stats.cpp Normal file
View 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)