From 7f8151b9b945ca78480a02381bc5bd0fdef8664d Mon Sep 17 00:00:00 2001 From: FearlessTobi Date: Wed, 29 Apr 2020 05:42:40 +0200 Subject: [PATCH] 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. --- src/core/file_sys/savedata_archive.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/file_sys/savedata_archive.cpp b/src/core/file_sys/savedata_archive.cpp index 090dc6fb05..28124eb24d 100644 --- a/src/core/file_sys/savedata_archive.cpp +++ b/src/core/file_sys/savedata_archive.cpp @@ -351,8 +351,8 @@ ResultVal> 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