diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-08-30 19:04:06 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-08-30 19:04:06 -0700 |
commit | f82c0de5020437bf45afa8d4e441437801466af6 (patch) | |
tree | 2aa807519b085bb82dc48269ed683636a5f2b45c /LICENSE.txt | |
parent | 7e97a2a1e7564c410236c012d7a6c4b0f141484d (diff) | |
download | view.love-f82c0de5020437bf45afa8d4e441437801466af6.tar.gz |
cleaner API for file-system access
Thanks to physfs and nativefs.lua nativefs still introduces some inconsistencies with love.filesystem with relative paths: * love.fs.read: reads from save dir if it exists, falls back to source dir if not * nativefs.read: reads from save dir if it exists, falls back to source dir if not ✓ * love.fs.write: always writes to save dir * nativefs.write: always writes to source dir (since no restrictions) * love.fs.newFile followed by file:open('r'): reads from save dir if it exists, source dir if not * nativefs.newFile followed by file:open('r'): always reads from working dir * love.fs.newFile followed by file:open('w'): always writes to save dir * nativefs.newFile followed by file:open('w'): always writes to working dir So avoid using relative paths with App primitives.
Diffstat (limited to 'LICENSE.txt')
0 files changed, 0 insertions, 0 deletions