This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/src/lua/lua_patch.cpp

27 lines
362 B
C++
Raw Normal View History

#include "lua_patch.hpp"
#include "memory/byte_patch.hpp"
namespace big
{
lua_patch::lua_patch(memory::byte_patch* patch) :
m_byte_patch(patch)
{
}
lua_patch::~lua_patch()
{
m_byte_patch->restore();
m_byte_patch->remove();
}
void lua_patch::apply()
{
m_byte_patch->apply();
}
void lua_patch::restore()
{
m_byte_patch->restore();
}
}