diff --git a/CubeModLoader/main.cpp b/CubeModLoader/main.cpp index 4d811e5..509370a 100644 --- a/CubeModLoader/main.cpp +++ b/CubeModLoader/main.cpp @@ -168,6 +168,7 @@ void no_optimize ASMStartMods() { } void PatchFreeImage(){ + // Thanks to frognik for showing off this method! DWORD oldProtect; void* patchaddr = (void*)GetModuleHandleA("FreeImage.dll") + 0x1E8C12; VirtualProtect((LPVOID)patchaddr, 8, PAGE_EXECUTE_READWRITE, &oldProtect);