diff --git a/love/mike/lib/GameState.lua b/love/mike/lib/GameState.lua index a7da402..c53307f 100644 --- a/love/mike/lib/GameState.lua +++ b/love/mike/lib/GameState.lua @@ -11,7 +11,7 @@ function GameState.load(SAVE_FILE) -- Pretty sure doing this slash will break it on winblows -- placeholder is the name of our placeholder variable -- so we can do things like "actors = GameState.load" - dofile(love.filesystem.getSaveDirectory().. "/" .. SAVE_FILE) + love.filesystem.load(SAVE_FILE)() -- Load and run the file return placeholder end