mkxp-z/subprojects/physfs.wrap
刘皓 c85e9554ec
Implement writing to filesystem (i.e. game saving) in libretro builds
Files are written to the libretro save directory, which is mounted at
/save in PhysFS. All filesystem calls made from Ruby in libretro builds
are routed through PhysFS, so the game can just use any ordinary
filesystem function provided by Ruby to interact with /save.

It's also union mounted on top of the game directory (located at /game
in PhysFS) so that games that write their save files to the current
working directory will have their save files saved to the libretro save
directory instead of the game directory.

For security and portability reasons, nothing outside of the libretro
save directory can be written to, and nothing outside of the libretro
save directory, the libretro game directory and the various embedded
files used by the runtime can be read from.
2025-05-07 16:01:41 -04:00

5 lines
247 B
Text

[wrap-git]
url = https://github.com/icculus/physfs
revision = release-3.2.0
depth = 1
diff_files = physfs-allow-duplicates.patch, physfs-darwin.patch, physfs-dir.patch, physfs-lstat.patch, physfs-mkxp-polyfill.patch, physfs-unknown-platform.patch