make patch dtor protected

This commit is contained in:
altalk23 2023-09-04 22:42:07 +03:00
parent 1eeb8810c9
commit b0d39e79c9
2 changed files with 4 additions and 0 deletions

View file

@ -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;

View file

@ -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) {