2021-05-04 08:20:35 -04:00
|
|
|
local memory, movie, utime, callback, set_timer_timeout, input = memory, movie, utime, callback, set_timer_timeout, input
|
2021-05-03 03:23:04 -04:00
|
|
|
|
2021-05-02 01:08:32 -04:00
|
|
|
local base = string.gsub(@@LUA_SCRIPT_FILENAME@@, "(.*[/\\])(.*)", "%1")
|
2021-05-03 03:23:04 -04:00
|
|
|
local Promise = dofile(base.."/promise.lua")
|
|
|
|
callback.register('timer', function()
|
|
|
|
Promise.update()
|
|
|
|
set_timer_timeout(1)
|
|
|
|
end)
|
|
|
|
set_timer_timeout(1)
|
|
|
|
local game = dofile(base.."/game.lua")(Promise)
|
|
|
|
local util = dofile(base.."/util.lua")(Promise)
|
2021-05-04 08:20:35 -04:00
|
|
|
local serpent = dofile(base.."/serpent.lua")
|
2021-05-03 03:23:04 -04:00
|
|
|
|
2021-05-04 08:20:35 -04:00
|
|
|
local test = io.popen("cat > Z:\\UserProfiles\\EmpathicQubit\\testy.txt", 'w')
|
|
|
|
test:write("hello world\n")
|
|
|
|
test:flush()
|
|
|
|
test:close()
|