run from the folder

This commit is contained in:
lustlion 2022-02-12 10:35:45 +01:00
parent d7d0c83c94
commit e51905de67
4 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -39,7 +39,7 @@ function love.load()
Camera.width = game.width
Camera.height = game.height
levelList = scandir("./Mothback/data/levels")
levelList = scandir("./data/levels")
levelNum = 1
currLevel = levelList[levelNum]
logPrint("currLevel: "..currLevel)