mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
make patch dtor protected
This commit is contained in:
parent
1eeb8810c9
commit
b0d39e79c9
2 changed files with 4 additions and 0 deletions
|
@ -144,6 +144,7 @@ namespace geode {
|
|||
};
|
||||
|
||||
class GEODE_DLL Patch final {
|
||||
// Change to private in 2.0.0
|
||||
protected:
|
||||
Mod* m_owner;
|
||||
void* m_address;
|
||||
|
@ -158,6 +159,7 @@ namespace geode {
|
|||
// m_owner, m_address, m_original and
|
||||
// m_patch.
|
||||
Patch();
|
||||
~Patch();
|
||||
|
||||
// no copying
|
||||
Patch(Patch const&) = delete;
|
||||
|
|
|
@ -33,6 +33,8 @@ Mod* Patch::getOwner() const {
|
|||
return m_owner;
|
||||
}
|
||||
|
||||
Patch::~Patch() {}
|
||||
|
||||
template <>
|
||||
struct json::Serialize<ByteVector> {
|
||||
static json::Value to_json(ByteVector const& bytes) {
|
||||
|
|
Loading…
Reference in a new issue