From 1acc66b2c5ac311fd4d457e4afe306863218aa48 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 18 Dec 2023 07:58:18 -0800 Subject: [PATCH] mount old location of screens if possible This still won't work on iOS, but should degrade gracefully. --- 0011-on.initialize | 5 ++++- 0153-Legacy_directory | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 0153-Legacy_directory diff --git a/0011-on.initialize b/0011-on.initialize index edfd624..b5fdb8e 100644 --- a/0011-on.initialize +++ b/0011-on.initialize @@ -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 \ No newline at end of file diff --git a/0153-Legacy_directory b/0153-Legacy_directory new file mode 100644 index 0000000..92435f8 --- /dev/null +++ b/0153-Legacy_directory @@ -0,0 +1 @@ +Legacy_directory = love.filesystem.getSourceBaseDirectory()..'/carousel_data/' \ No newline at end of file