mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Improve cross-platform savestate compat.
If 0 files are open in flash0:, which is very very common, this will make them work the same.
This commit is contained in:
parent
d4ff4675d0
commit
a5b0901c36
@ -917,7 +917,15 @@ std::vector<PSPFileInfo> VFSFileSystem::GetDirListing(std::string path) {
|
||||
}
|
||||
|
||||
void VFSFileSystem::DoState(PointerWrap &p) {
|
||||
if (!entries.empty()) {
|
||||
// Note: used interchangeably with DirectoryFileSystem for flash0:, so we use the same name.
|
||||
auto s = p.Section("DirectoryFileSystem", 0, 2);
|
||||
if (!s)
|
||||
return;
|
||||
|
||||
u32 num = (u32) entries.size();
|
||||
p.Do(num);
|
||||
|
||||
if (num != 0) {
|
||||
p.SetError(p.ERROR_WARNING);
|
||||
ERROR_LOG(FILESYS, "FIXME: Open files during savestate, could go badly.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user