mike:GameState: Changed dofile to love.filesystem.load()() for clarity and compatability
This commit is contained in:
parent
3828805abb
commit
fa1dfa4928
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user