t7x/src/client/component/dedicated.cpp

26 lines
407 B
C++
Raw Normal View History

2022-11-24 11:25:37 -05:00
#include <std_include.hpp>
#include "loader/component_loader.hpp"
2023-01-02 07:57:00 -05:00
#include "game/game.hpp"
2022-11-24 11:25:37 -05:00
#include <utils/hook.hpp>
namespace dedicated
{
namespace
{
}
2023-01-01 15:51:04 -05:00
struct component final : server_component
2022-11-24 11:25:37 -05:00
{
void post_unpack() override
{
2023-01-02 07:57:00 -05:00
// Ignore "bad stats"
utils::hook::set<uint8_t>(0x14052D523_g, 0xEB);
utils::hook::nop(0x14052D4E4_g, 2);
2022-11-24 11:25:37 -05:00
}
};
}
REGISTER_COMPONENT(dedicated::component)