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

Get the owner of this patch.

Return value
Pointer to the owner's Mod handle.
boolisEnabled()const

Get whether the patch is enabled or not.

Return value
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.

Return value
Auto enable
voidsetAutoEnable(
boolautoEnable
)

Set whether the patch should be auto enabled or not.

Parameters

autoEnable

Auto enable
geode::ByteVectorconst&getBytes()const

Get the bytes of the patch.

Return value
Bytes used to patch
geode::Result<>updateBytes()

Updates the bytes of the patch, disabling and then re-enabling if needed.

Parameters

bytes

Bytes used to patch
_::uintptr_tgetAddress()const

Get the address of the patch.

Return value
Address
matjson::ValuegetRuntimeInfo()const

Get info about the patch as JSON

ℹ For IPC

Fields0
Protected member functions0
Protected fields0