Skip to content

Instantly share code, notes, and snippets.

@EngineerSmith
Last active March 31, 2022 19:10
Show Gist options
  • Save EngineerSmith/7fd575dfdd4420d46fa2281a1dc94538 to your computer and use it in GitHub Desktop.
Save EngineerSmith/7fd575dfdd4420d46fa2281a1dc94538 to your computer and use it in GitHub Desktop.
appleCake.beginSession() -- Default "profile.json" in the save direcotry
appleCake.beginSession("profile.json")
appleCake.beginSession("/profiles/profile.json")
appleCake.beginSession(nil, "Best Project")
appleCake.beginSession("profile.json", "Game4000")
if love.filesystem.isFused() then
local dir = love.filesystem.getSourceBaseDirectory()
love.filesystem.mount(dir, "gameSource")
appleCake.beginSession("gameSource/profile.json") -- write profile.json next to fused source
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment