Skip to content

Commit 42f3af0

Browse files
committed
Add support for Epilogue 2 Main branch Build Apr 8 2024 18:11:27
1 parent 4e79c08 commit 42f3af0

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
@@ -354,6 +354,13 @@ function Modification.SetMemoryOptions(memory)
354354
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.
355355
end,
356356
},
357+
{_Offset = 0x01001DF4, _BuildString = "Build Apr 8 2024 18:11:27", -- Steam build.
358+
enableModDetection = function(value)
359+
local ptr = ffi.cast("char*", 0x006B3355+6)
360+
Memory.VirtualProtect(ptr, 1, Memory.PAGE_EXECUTE_READWRITE)
361+
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.
362+
end,
363+
},
357364
},
358365
},
359366
}

0 commit comments

Comments
 (0)