From d9e6cc05a092c10b0dfb70c7c5f620ae5d0ab88f Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Wed, 22 Feb 2023 15:28:26 +0100 Subject: [PATCH] fix(dtmm): Add additional Lua globals to backup --- crates/dtmm/assets/mod_main.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/crates/dtmm/assets/mod_main.lua b/crates/dtmm/assets/mod_main.lua index 4422b4a..e825248 100644 --- a/crates/dtmm/assets/mod_main.lua +++ b/crates/dtmm/assets/mod_main.lua @@ -1,7 +1,15 @@ -- Keep a backup of certain system libraries before -- Fatshark's code scrubs them. -- The loader can then decide to pass them on to mods, or ignore them -local libs = { io = io, debug = debug, ffi = ffi, os = os } +local libs = { + io = io, + debug = debug, + ffi = ffi, + os = os, + load = load, + loadfile = loadfile, + loadstring = loadstring, +} require("scripts/game_states/boot/state_boot_sub_state_base") local StateBootLoadMods = class("StateBootLoadMods", "StateBootSubStateBase")