From aa9a0b0b15cbd0ec2457082ed334aa6d8fd99699 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 27 Oct 2023 23:58:42 -0700 Subject: [PATCH] use my name for a dir --- app.lua | 2 +- run.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.lua b/app.lua index cf89a37..841c632 100644 --- a/app.lua +++ b/app.lua @@ -480,7 +480,7 @@ function App.disable_tests() App.files = nativefs.getDirectoryItems App.mkdir = nativefs.createDirectory App.remove = nativefs.remove - App.source_dir = love.filesystem.getSource()..'/' + App.source_dir = love.filesystem.getSource()..'/' -- '/' should work even on Windows App.current_dir = nativefs.getWorkingDirectory()..'/' App.save_dir = love.filesystem.getSaveDirectory()..'/' App.get_time = love.timer.getTime diff --git a/run.lua b/run.lua index 2d86627..98a8345 100644 --- a/run.lua +++ b/run.lua @@ -163,7 +163,7 @@ end function absolutize(path) if is_relative_path(path) then - return love.filesystem.getWorkingDirectory()..'/'..path -- '/' should work even on Windows + return App.current_dir..path end return path end -- 2.11.4.GIT