From fa1dfa49286d162ca7dea9ca4c4c0cee3e6caaf9 Mon Sep 17 00:00:00 2001 From: Logen Kain Date: Sun, 30 Jul 2017 21:49:18 -0700 Subject: [PATCH] mike:GameState: Changed dofile to love.filesystem.load()() for clarity and compatability --- love/mike/lib/GameState.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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