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.hpp
2023-07-02 00:59:02 +02:00

33 lines
505 B
C++

#pragma once
namespace memory
{
class byte_patch;
}
namespace big
{
// Lua API: Class
// Name: lua_patch
// Class representing a in-memory patch.
class lua_patch
{
memory::byte_patch* m_byte_patch;
public:
lua_patch(memory::byte_patch* patch);
~lua_patch();
// Lua API: Function
// Class: lua_patch
// Name: apply
// Apply the modified value.
void apply();
// Lua API: Function
// Class: lua_patch
// Name: restore
// Restore the original value.
void restore();
};
}