You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--enableModDetection = 0x0063D8AD, -- 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.
125
-
-- The page this is in is not writable, so this will crash Noita.
126
-
-- This modification can be applied manually with some other tool that changes the permission prior to writing, like Cheat Engine.
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.
129
+
end,
127
130
},
128
131
},
129
132
},
@@ -132,10 +135,10 @@ function Modification.SetMemoryOptions(memory)
132
135
-- Look up the tree and set options accordingly.
133
136
134
137
locallevel1=lookup[DebugGetIsDevBuild()]
135
-
iflevel1==nilthenreturnend
138
+
level1=level1or {}
136
139
137
140
locallevel2=level1[ffi.os]
138
-
iflevel2==nilthenreturnend
141
+
level2=level2or {}
139
142
140
143
locallevel3
141
144
fork, vinpairs(level2) do
@@ -146,9 +149,11 @@ function Modification.SetMemoryOptions(memory)
0 commit comments