Skip to content

Commit 442c8f7

Browse files
authored
Merge pull request #27 from WUOTE/master
Add support for Epilogue 2 Main branch Build Apr 8 2024 18:11:27
2 parents dcfe240 + 42f3af0 commit 442c8f7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

files/modification.lua

+7
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,13 @@ function Modification.SetMemoryOptions(memory)
364364
ptr[0] = value -- This basically just changes the value that Noita forces to the "mods_have_been_active_during_this_run" member of the WorldStateComponent when any mod is enabled.
365365
end,
366366
},
367+
{_Offset = 0x01001DF4, _BuildString = "Build Apr 8 2024 18:11:27", -- Steam build.
368+
enableModDetection = function(value)
369+
local ptr = ffi.cast("char*", 0x006B3355+6)
370+
Memory.VirtualProtect(ptr, 1, Memory.PAGE_EXECUTE_READWRITE)
371+
ptr[0] = value -- This basically just changes the value that Noita forces to the "mods_have_been_active_during_this_run" member of the WorldStateComponent when any mod is enabled.
372+
end,
373+
},
367374
},
368375
},
369376
}

0 commit comments

Comments
 (0)