mount old location of screens if possible

This still won't work on iOS, but should degrade gracefully.
This commit is contained in:
Kartik K. Agaram 2023-12-18 07:58:18 -08:00
parent f9c2d7883f
commit 1acc66b2c5
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
on.initialize = function()
love.filesystem.createDirectory(Directory)
pcall(function()
nativefs.mount(Legacy_directory, Directory)
end)
populate_missing_handlers()
Font = love.graphics.newFont(Font_height)
love.graphics.setFont(Font)
@ -15,4 +18,4 @@ on.initialize = function()
end
Current_pane_index = 1
Current_pane = Panes[Current_pane_index]
end
end

1
0153-Legacy_directory Normal file
View File

@ -0,0 +1 @@
Legacy_directory = love.filesystem.getSourceBaseDirectory()..'/carousel_data/'