Get the owner of this patch.
Class Patch
#include <Geode/loader/Hook.hpp>
classPatch{ ... }
No description provided
Examples0
Public static methods1
staticstd::shared_ptr<geode::Patch>create(void*address,)
No description provided
Public member functions11
geode::Patchoperator=()
No description provided
geode::Mod*getOwner()const
Pointer to the owner's Mod handle.
boolisEnabled()const
Get whether the patch is enabled or not.
True if enabled, false if not.
geode::Result<>enable()
No description provided
geode::Result<>disable()
No description provided
boolgetAutoEnable()const
Get whether the patch should be auto enabled or not.
Auto enable
voidsetAutoEnable(boolautoEnable)
Set whether the patch should be auto enabled or not.
autoEnable
Auto enable
geode::ByteVectorconst&getBytes()const
Get the bytes of the patch.
Bytes used to patch
geode::Result<>updateBytes()
Updates the bytes of the patch, disabling and then re-enabling if needed.
bytes
Bytes used to patch
uintptr_tgetAddress()const
Get the address of the patch.
Address
matjson::ValuegetRuntimeInfo()const
Get info about the patch as JSON
ℹ For IPC