|
1 | | --- Copyright (c) 2022-2024 David Vogel |
| 1 | +-- Copyright (c) 2022-2025 David Vogel |
2 | 2 | -- |
3 | 3 | -- This software is released under the MIT License. |
4 | 4 | -- https://opensource.org/licenses/MIT |
@@ -268,6 +268,16 @@ function Modification.SetMemoryOptions(memory) |
268 | 268 | mPlayerNeverDies = function(value) ffi.cast("char*", 0x01327D3C+6)[0] = value end, |
269 | 269 | mFreezeAI = function(value) ffi.cast("char*", 0x01327D3C+7)[0] = value end, |
270 | 270 | }, |
| 271 | + {_Offset = 0x01191A34, _BuildString = "Build Jan 25 2025 15:51:09", -- Steam dev build. |
| 272 | + mPostFxDisabled = function(value) ffi.cast("char*", 0x0132ADDC+0)[0] = value end, |
| 273 | + mGuiDisabled = function(value) ffi.cast("char*", 0x0132ADDC+1)[0] = value end, |
| 274 | + mGuiHalfSize = function(value) ffi.cast("char*", 0x0132ADDC+2)[0] = value end, |
| 275 | + mFogOfWarOpenEverywhere = function(value) ffi.cast("char*", 0x0132ADDC+3)[0] = value end, |
| 276 | + mTrailerMode = function(value) ffi.cast("char*", 0x0132ADDC+4)[0] = value end, |
| 277 | + mDayTimeRotationPause = function(value) ffi.cast("char*", 0x0132ADDC+5)[0] = value end, |
| 278 | + mPlayerNeverDies = function(value) ffi.cast("char*", 0x0132ADDC+6)[0] = value end, |
| 279 | + mFreezeAI = function(value) ffi.cast("char*", 0x0132ADDC+7)[0] = value end, |
| 280 | + }, |
271 | 281 | }, |
272 | 282 | }, |
273 | 283 | [false] = { |
@@ -405,6 +415,13 @@ function Modification.SetMemoryOptions(memory) |
405 | 415 | 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. |
406 | 416 | end, |
407 | 417 | }, |
| 418 | + {_Offset = 0x01009D3C, _BuildString = "Build Jan 25 2025 15:55:41", -- Steam build. |
| 419 | + enableModDetection = function(value) |
| 420 | + local ptr = ffi.cast("char*", 0x006B3AD5+6) |
| 421 | + Memory.VirtualProtect(ptr, 1, Memory.PAGE_EXECUTE_READWRITE) |
| 422 | + 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. |
| 423 | + end, |
| 424 | + }, |
408 | 425 | }, |
409 | 426 | }, |
410 | 427 | } |
|
0 commit comments