diff --git a/data/scripts/in_out.lua b/data/scripts/in_out.lua index a0338e4..8ede03a 100644 --- a/data/scripts/in_out.lua +++ b/data/scripts/in_out.lua @@ -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 diff --git a/data/scripts/level.lua b/data/scripts/level.lua index 022f2e9..e6117a2 100644 --- a/data/scripts/level.lua +++ b/data/scripts/level.lua @@ -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 diff --git a/data/scripts/locale.lua b/data/scripts/locale.lua index 9eaea70..4bf1c0c 100644 --- a/data/scripts/locale.lua +++ b/data/scripts/locale.lua @@ -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 diff --git a/main.lua b/main.lua index c4d512c..2b21a63 100644 --- a/main.lua +++ b/main.lua @@ -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)