about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-10-27 23:58:42 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-10-27 23:58:42 -0700
commitaa9a0b0b15cbd0ec2457082ed334aa6d8fd99699 (patch)
treeb6958ea348a72ac293bf5473790edb67cebb822f
parent5d41640d2ff7c3724ffed76759f729a38268b03d (diff)
downloadlines.love-aa9a0b0b15cbd0ec2457082ed334aa6d8fd99699.tar.gz
use my name for a dir
-rw-r--r--app.lua2
-rw-r--r--run.lua2
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