We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d81b13 commit e63d5c7Copy full SHA for e63d5c7
1 file changed
lua.lua
@@ -8,7 +8,7 @@ if cmd=="--file" or cmd=="-f" then
8
if f==nil then
9
qerror(err)
10
end
11
- dfhack.pcall(f,table.unpack(args,3))
+ dfhack.safecall(f,table.unpack(args,3))
12
elseif cmd=="--save" or cmd=="-s" then
13
if df.global.world.cur_savegame.save_dir=="" then
14
qerror("Savefile not loaded")
@@ -19,7 +19,7 @@ elseif cmd=="--save" or cmd=="-s" then
19
20
21
22
23
elseif cmd~=nil then
24
-- Support some of the prefixes allowed by dfhack.interpreter
25
local prefix
0 commit comments