Get the owner of this patch.
Class Patch
#include <Noahh/loader/Hook.hpp>classPatch{ ... }
No description provided
Examples0
Public static methods1
staticstd::shared_ptr<noahh::Patch>create(void*address,noahh::ByteSpanpatch)
No description provided
Public member functions13
noahh::Patchoperator=()
No description provided
noahh::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.
noahh::Result<>enable()
No description provided
noahh::Result<>disable()
No description provided
noahh::Result<>toggle()
No description provided
noahh::Result<>toggle(boolenable)
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
noahh::ByteVectorconst&getBytes()const
Get the bytes of the patch.
Bytes used to patch
noahh::Result<>updateBytes(noahh::ByteSpanbytes)
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