mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-26 18:03:02 +00:00
savedata_archive: Make GetFreeBytes return a more accurate value
Previously, we were returning a value that was way too big, causing an integer overflow in Fractured Souls. According to wwylele, the biggest oberserved save size for 3DS is 1MB, so this new value should leave plenty of room, even if games use a bigger size.
This commit is contained in:
parent
98fe5f82c5
commit
7f8151b9b9
|
@ -351,8 +351,8 @@ ResultVal<std::unique_ptr<DirectoryBackend>> SaveDataArchive::OpenDirectory(
|
|||
}
|
||||
|
||||
u64 SaveDataArchive::GetFreeBytes() const {
|
||||
// TODO: Stubbed to return 1GiB
|
||||
return 1024 * 1024 * 1024;
|
||||
// TODO: Stubbed to return 32MiB
|
||||
return 1024 * 1024 * 32;
|
||||
}
|
||||
|
||||
} // namespace FileSys
|
||||
|
|
Loading…
Reference in a new issue