mkxp-z/binding-sandbox
刘皓 d71cd242c7
Improve save directory creation algorithm in libretro builds
Before, if the game tried to create a save file, missing parent
directories would always be created because they could possibly exist
only in the game directory and not in the save directory, and we
wouldn't know due to the union mounting of the save and game
directories. But this is inconsistent with the behaviour of file
creation, where it should fail if parent directories don't exist.

The behaviour has been changed to only create parent directories if the
parent directories already exist. I know that sounds strange, but if the
parent directories exist, it could be that they only exist in the game
directory but not the save directory due to the union mounting, so we
need to create the parent directories, which will be created in the save
directory due to it being set as the write directory in PhysFS.
2025-05-07 22:13:45 -04:00
..
audio-binding.cpp Use C getcwd() instead of Ruby Dir.pwd() to get CWD in libretro builds 2025-05-06 18:02:03 -04:00
audio-binding.h Refactor binding-sandbox header files into .cpp files 2025-04-30 22:31:13 -04:00
binding-base.cpp Remove exceptions from the sandbox implementation in libretro builds 2025-04-25 13:31:32 -04:00
binding-base.h Handle current working directory properly in libretro builds 2025-05-06 16:55:28 -04:00
binding-sandbox.cpp Use C getcwd() instead of Ruby Dir.pwd() to get CWD in libretro builds 2025-05-06 18:02:03 -04:00
binding-sandbox.h Refactor binding-sandbox header files into .cpp files 2025-04-30 22:31:13 -04:00
binding-util.cpp Use C getcwd() instead of Ruby Dir.pwd() to get CWD in libretro builds 2025-05-06 18:02:03 -04:00
binding-util.h Use C getcwd() instead of Ruby Dir.pwd() to get CWD in libretro builds 2025-05-06 18:02:03 -04:00
bitmap-binding.cpp Use C getcwd() instead of Ruby Dir.pwd() to get CWD in libretro builds 2025-05-06 18:02:03 -04:00
bitmap-binding.h Add more helper functions for bindings in libretro builds 2025-05-01 11:18:02 -04:00
disposable-binding.h Add more helper functions for bindings in libretro builds 2025-05-01 11:18:02 -04:00
etc-binding.cpp Add serializable-binding.h in libretro builds 2025-05-01 13:58:54 -04:00
etc-binding.h Refactor binding-sandbox header files into .cpp files 2025-04-30 22:31:13 -04:00
flashable-binding.h Add more helper functions for bindings in libretro builds 2025-05-01 11:18:02 -04:00
font-binding.cpp Add serializable-binding.h in libretro builds 2025-05-01 13:58:54 -04:00
font-binding.h Refactor binding-sandbox header files into .cpp files 2025-04-30 22:31:13 -04:00
graphics-binding.cpp Use C getcwd() instead of Ruby Dir.pwd() to get CWD in libretro builds 2025-05-06 18:02:03 -04:00
graphics-binding.h Refactor binding-sandbox header files into .cpp files 2025-04-30 22:31:13 -04:00
input-binding.cpp Stub out the rest of the input bindings in libretro builds 2025-05-01 22:49:18 -04:00
input-binding.h Stub out the rest of the input bindings in libretro builds 2025-05-01 22:49:18 -04:00
meson.build Refactor binding-sandbox header files into .cpp files 2025-04-30 22:31:13 -04:00
module_rpg.cpp Reconcile the standalone and libretro build systems 2025-04-09 23:52:12 -04:00
plane-binding.cpp Complete almost all of the bindings in libretro builds 2025-05-01 14:32:59 -04:00
plane-binding.h Refactor binding-sandbox header files into .cpp files 2025-04-30 22:31:13 -04:00
sandbox.cpp Use C getcwd() instead of Ruby Dir.pwd() to get CWD in libretro builds 2025-05-06 18:02:03 -04:00
sandbox.h Use C getcwd() instead of Ruby Dir.pwd() to get CWD in libretro builds 2025-05-06 18:02:03 -04:00
sceneelement-binding.h Add more helper functions for bindings in libretro builds 2025-05-01 11:18:02 -04:00
serializable-binding.h Implement writing to filesystem (i.e. game saving) in libretro builds 2025-05-07 16:01:41 -04:00
sprite-binding.cpp Complete almost all of the bindings in libretro builds 2025-05-01 14:32:59 -04:00
sprite-binding.h Refactor binding-sandbox header files into .cpp files 2025-04-30 22:31:13 -04:00
table-binding.cpp Add serializable-binding.h in libretro builds 2025-05-01 13:58:54 -04:00
table-binding.h Refactor binding-sandbox header files into .cpp files 2025-04-30 22:31:13 -04:00
tilemap-binding.cpp Complete almost all of the bindings in libretro builds 2025-05-01 14:32:59 -04:00
tilemap-binding.h Refactor binding-sandbox header files into .cpp files 2025-04-30 22:31:13 -04:00
tilemapvx-binding.cpp Complete almost all of the bindings in libretro builds 2025-05-01 14:32:59 -04:00
tilemapvx-binding.h Refactor binding-sandbox header files into .cpp files 2025-04-30 22:31:13 -04:00
types.h Remove exceptions from the sandbox implementation in libretro builds 2025-04-25 13:31:32 -04:00
viewport-binding.cpp Complete almost all of the bindings in libretro builds 2025-05-01 14:32:59 -04:00
viewport-binding.h Refactor binding-sandbox header files into .cpp files 2025-04-30 22:31:13 -04:00
viewportelement-binding.h Add more helper functions for bindings in libretro builds 2025-05-01 11:18:02 -04:00
wasi.cpp Improve save directory creation algorithm in libretro builds 2025-05-07 22:13:45 -04:00
wasi.h Implement writing to filesystem (i.e. game saving) in libretro builds 2025-05-07 16:01:41 -04:00
wasm-rt.cpp Pin wasm2c version in libretro builds 2025-05-01 00:53:26 -04:00
wasm-rt.h Handle current working directory properly in libretro builds 2025-05-06 16:55:28 -04:00
window-binding.cpp Complete almost all of the bindings in libretro builds 2025-05-01 14:32:59 -04:00
window-binding.h Refactor binding-sandbox header files into .cpp files 2025-04-30 22:31:13 -04:00
windowvx-binding.cpp Complete almost all of the bindings in libretro builds 2025-05-01 14:32:59 -04:00
windowvx-binding.h Refactor binding-sandbox header files into .cpp files 2025-04-30 22:31:13 -04:00