run from the folder
This commit is contained in:
parent
d7d0c83c94
commit
e51905de67
|
@ -1,7 +1,7 @@
|
|||
function ExportLevel(levelname, filename)
|
||||
os.execute( "mkdir \"./Mothback/export\"" )
|
||||
os.execute( "mkdir \"./export\"" )
|
||||
filename = filename or "output.lua"
|
||||
filename = "Mothback/export/"..filename
|
||||
filename = "export/"..filename
|
||||
exportFile = io.open(filename, "w+")
|
||||
|
||||
if exportFile then
|
||||
|
@ -82,6 +82,6 @@ return {
|
|||
]]
|
||||
if logging then
|
||||
-- Make log stuff
|
||||
os.execute( "mkdir \"./Mothback/logs\"" )
|
||||
logFile = io.open("Mothback/logs/mothback_"..os.date("%Y-%m-%d_%H-%M-%S")..".log", "a+")
|
||||
os.execute( "mkdir \"./logs\"" )
|
||||
logFile = io.open("logs/mothback_"..os.date("%Y-%m-%d_%H-%M-%S")..".log", "a+")
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function LevelLoadTiles()
|
||||
|
||||
LevelData = dofile("Mothback/data/levels/"..currLevel)
|
||||
LevelData = dofile("data/levels/"..currLevel)
|
||||
|
||||
--[[
|
||||
on level format:
|
||||
|
@ -108,7 +108,7 @@ end
|
|||
function LevelGetTileData()
|
||||
for k, v in pairs(tileset) do
|
||||
if v == LevelData.tileset then
|
||||
TileData = dofile("Mothback/data/tileset/"..k..".lua")
|
||||
TileData = dofile("data/tileset/"..k..".lua")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
function LocaleLoad(ISO639)
|
||||
local ISO639 = ISO639 or "ENG"
|
||||
dofile("Mothback/data/locale/"..ISO639..".lua")
|
||||
dofile("Mothback/data/dialog_sequences.lua")
|
||||
dofile("data/locale/"..ISO639..".lua")
|
||||
dofile("data/dialog_sequences.lua")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue