Merge template-carousel-mobile

This commit is contained in:
Kartik K. Agaram 2024-03-23 09:12:46 -07:00
commit 7b87a036ad
3 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,3 @@
has_local_modifications = function(filename)
return nativefs.getInfo(App.save_dir..Directory..filename)
return love.filesystem.getRealDirectory(Directory..filename) == love.filesystem.getSaveDirectory()
end

View File

@ -2,5 +2,5 @@ can_be_unstashed = function(pane)
if not pane.is_stash then return end
assert(pane.filename)
local filename = unstash_filename(pane.filename)
return not nativefs.getInfo(App.save_dir..Directory..filename)
return not has_local_modifications(filename)
end

View File

@ -108,6 +108,8 @@ Updates to it can be downloaded from the following mirrors:
Further forks are encouraged. If you show me your fork, I'll link to it here.
* https://git.sr.ht/~akkartik/sokoban.love
## Feedback
[Most appreciated.](http://akkartik.name/contact)