diff --git a/icon/sdl_instead.ico b/icon/sdl_instead.ico index 2226546..47c4c45 100644 Binary files a/icon/sdl_instead.ico and b/icon/sdl_instead.ico differ diff --git a/src/sdl-instead/resources.rc b/src/sdl-instead/resources.rc index 2ec878c..8072986 100644 --- a/src/sdl-instead/resources.rc +++ b/src/sdl-instead/resources.rc @@ -1 +1 @@ -IDI_ICON1 ICON DISCARDABLE "../../icon/sdl_instead.ico" +MAINICON ICON DISCARDABLE "../../icon/sdl_instead.ico" diff --git a/stead/stead.lua b/stead/stead.lua index cda18ea..a8c0be8 100644 --- a/stead/stead.lua +++ b/stead/stead.lua @@ -1,8 +1,9 @@ stead = { - ver = "0.9.1", + version = "0.9.1", table = table, string = string, math = math, + io = io, } @@ -1298,7 +1299,7 @@ function game_save(self, name, file) if name == nil then return nil, false end - h = io.open(name,"w"); + h = stead.io.open(name,"w"); if not h then return nil, false end @@ -1336,7 +1337,7 @@ end game = game { - nam = "INSTEAD -- Simple Text Adventure interpreter v"..stead.ver.." '2009 by Peter Kosyh", + nam = "INSTEAD -- Simple Text Adventure interpreter v"..stead.version.." '2009 by Peter Kosyh", dsc = [[ Commands:^ look(or just enter), act (or just what), use [on what], go ,^ @@ -1505,7 +1506,7 @@ iface = { local inp, i, k, cmd, a, n; me():tag(); while game._running do - inp = io.read("*l"); + inp = stead.io.read("*l"); if inp == 'quit' then break; end