Skip to content

Commit ac9298b

Browse files
author
Peter Kosyh
committed
sanbox added
1 parent 847e0b5 commit ac9298b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ Options:
6262
* -iscript - read script line by line and use it as commands;
6363
* -lfile - write all input commands to file;
6464
* -cpCODEPAGE - Win only (1251 by default), use 65001 for UTF-8;
65-
* -a - autosave on exit and autoload on start (autosave file).
65+
* -a - autosave on exit and autoload on start (autosave file);
66+
* -x - execute lua script.
6667

6768
## Links
6869

tiny.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ if API == 'stead3' then
99
local instead = std '@instead'
1010
instead.restart = instead_restart
1111
instead.menu = instead_menu
12-
12+
instead.savepath = function() return "./" end
1313
std.mod_start(function()
14+
std.mod_init(function()
15+
std.rawset(_G, 'instead', instead)
16+
require "ext/sandbox"
17+
end)
1418
local mp = std.ref '@metaparser'
1519
if mp then
1620
mp.msg.CUTSCENE_MORE = '^'..mp.msg.CUTSCENE_HELP

0 commit comments

Comments
 (0)