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