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
maybegreat48 70efa40afe
Lua Scripting (#1334)
Closes #83
Fixes #1309
Fixes #1287
Fixes #1129 (actually fixed now)
2023-06-06 09:40:40 +02:00

27 lines
362 B
C++

#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();
}
}