Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
PSP2: Simplify the filesystem code #2459
The Vita SDK gained support for dirent at the end of 2017. Our copy
DrivesPOSIXFilesystemFactory allows to specify the contents of the
I have tested this on a Vita. Seems to work fine.
The Vita SDK gained support for dirent at the end of 2017. There is no need to have our own version anymore. DrivesPOSIXFilesystemFactory allows to specify the contents of the pseudo-root file system node. There is no need to hardcode them in posix-fs.cpp anymore.
I am wondering if this could cause a bug on Vita similar to a bug that plagued PSP, 3DS and Switch for a while. The bug was due to an fseek in The Dig (and maybe other games) causing crashes:
The fix to these bugs was to use the ScummVM internal filesystem implementation, instead of the respective native SDK-provided one.
I think it might be good to carefully check that the changes in this PR don't cause problems similar to the above cited bugs that have been fixed in those other platforms.