MCPcopy Create free account
hub / github.com/H3d9/sguard_limit / writeConfig

Method writeConfig

sguard_limit/mempatch.cpp:98–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void PatchManager::writeConfig() {
99
100 configMgr.writeDword("Patch", "DelayBeforeNtdlletc", patchDelayBeforeNtdlletc.load());
101 configMgr.writeBool("Patch", "NtQueryVirtualMemory", patchSwitches.NtQueryVirtualMemory.load());
102 configMgr.writeBool("Patch", "NtReadVirtualMemory", patchSwitches.NtReadVirtualMemory.load());
103 configMgr.writeBool("Patch", "GetAsyncKeyState", patchSwitches.GetAsyncKeyState.load());
104 configMgr.writeBool("Patch", "NtWaitForSingleObject", patchSwitches.NtWaitForSingleObject.load());
105 configMgr.writeBool("Patch", "NtDelayExecution", patchSwitches.NtDelayExecution.load());
106 configMgr.writeBool("Patch", "DeviceIoControl_1", patchSwitches.DeviceIoControl_1.load());
107 configMgr.writeBool("Patch", "DeviceIoControl_1x", patchSwitches.DeviceIoControl_1x.load());
108 configMgr.writeBool("Patch", "DeviceIoControl_2", patchSwitches.DeviceIoControl_2.load());
109 configMgr.writeDword("Patch", "Delay0", patchDelay[0].load());
110 configMgr.writeDword("Patch", "Delay1", patchDelay[1].load());
111 configMgr.writeDword("Patch", "Delay2", patchDelay[2].load());
112 configMgr.writeDword("Patch", "Delay3", patchDelay[3].load());
113 configMgr.writeDword("Patch", "Delay4", patchDelay[4].load());
114}
115
116void PatchManager::_applyDefaultConfig() {
117

Callers 1

initMethod · 0.95

Calls 3

writeDwordMethod · 0.80
writeBoolMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected