Skip to content

Commit 696f77c

Browse files
committed
stead3: a b use form
1 parent 49f77be commit 696f77c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ int main(int argc, const char **argv)
340340
SetConsoleCP(opt_codepage);
341341
#endif
342342
if (!game) {
343-
printf("instead-cli %s (by Peter Kosyh '2021-2022)\n", VERSION);
343+
printf("instead-cli %s (by Peter Kosyh '2021-2025)\n", VERSION);
344344
fprintf(stdout, "Usage: %s [-d<file>] [-w<width>] [-i<script>] [-l<log>] [-a] <game>\n", argv[0]);
345345
exit(1);
346346
}

tiny.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,23 @@
77
if API == 'stead3' then
88
require 'tiny3'
99
require "ext/sound"
10+
LANG='en'
1011
local instead = std '@instead'
1112
local iface = std '@iface'
1213
instead.music_callback = function() end
1314
instead.restart = instead_restart
1415
instead.menu = instead_menu
1516
instead.savepath = function() return "./" end
1617
std.savepath = instead.savepath
18+
local iface_cmd = iface.cmd
19+
function iface:cmd(inp)
20+
local a = std.split(inp, " ,")
21+
if a[1] == 'use' and #a == 3 then -- use a b -> use a,b
22+
std.table.remove(a, 1)
23+
return iface_cmd(self, 'use '..std.join(a, ','))
24+
end
25+
return iface_cmd(self, inp)
26+
end
1727
function iface:em(str)
1828
if type(str) == 'string' then
1929
return '/'..str..'/'

0 commit comments

Comments
 (0)