Default roaming folder not created
Posted: Mon Mar 21, 2016 2:34 am
Hi, I'm trying to make a save file system, but I can't access the default folder.
It isn't created when calling the script so there is no save folder to go to.
This folder does not exist and does not get created when running the game (starting in console).
I created it by hand now, but even then I can't make a new folder inside with mkdir
Is there any way to let the game make this folder?
This is the current code:
It will give the "attempt to call field mkdir (a nil value)
It isn't created when calling the script so there is no save folder to go to.
Code: Select all
C:\Users\<username>\AppData\Roaming\LOVE
I created it by hand now, but even then I can't make a new folder inside with mkdir
Is there any way to let the game make this folder?
This is the current code:
Code: Select all
function loadGame:enter()
local files = ''
love.filesystem.mkdir("SpaceSim")
end