Skip to content

Commit 8b2fe81

Browse files
committed
Add support for Build Feb 12 2024 19:07:19 (beta branch)
1 parent 0758ec7 commit 8b2fe81

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
@@ -306,6 +306,13 @@ function Modification.SetMemoryOptions(memory)
306306
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.
307307
end,
308308
},
309+
{_Offset = 0x00FF22D4, _BuildString = "Build Feb 12 2024 19:07:19", -- Steam build.
310+
enableModDetection = function(value)
311+
local ptr = ffi.cast("char*", 0x006AE161+6)
312+
Memory.VirtualProtect(ptr, 1, Memory.PAGE_EXECUTE_READWRITE)
313+
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.
314+
end,
315+
},
309316
},
310317
},
311318
}

0 commit comments

Comments
 (0)