diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-07-09 20:38:28 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-07-10 06:37:39 +0200 |
commit | b24b463c874b5c71c906e05f42d44912e071fa06 (patch) | |
tree | bc5c6ab44cc8f67cccc103ee5dd48da06e5cad43 /src/core/file_sys | |
parent | sdmc_factory: Set the SDMC total size to 1 TiB (diff) | |
download | yuzu-b24b463c874b5c71c906e05f42d44912e071fa06.tar yuzu-b24b463c874b5c71c906e05f42d44912e071fa06.tar.gz yuzu-b24b463c874b5c71c906e05f42d44912e071fa06.tar.bz2 yuzu-b24b463c874b5c71c906e05f42d44912e071fa06.tar.lz yuzu-b24b463c874b5c71c906e05f42d44912e071fa06.tar.xz yuzu-b24b463c874b5c71c906e05f42d44912e071fa06.tar.zst yuzu-b24b463c874b5c71c906e05f42d44912e071fa06.zip |
Diffstat (limited to 'src/core/file_sys')
-rw-r--r-- | src/core/file_sys/bis_factory.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/file_sys/bis_factory.cpp b/src/core/file_sys/bis_factory.cpp index a412dbd9c..285277ef8 100644 --- a/src/core/file_sys/bis_factory.cpp +++ b/src/core/file_sys/bis_factory.cpp @@ -126,7 +126,9 @@ u64 BISFactory::GetSystemNANDTotalSpace() const { } u64 BISFactory::GetUserNANDFreeSpace() const { - return GetUserNANDTotalSpace(); + // For some reason games such as BioShock 1 checks whether this is exactly 0x680000000 bytes. + // Set the free space to be 1 MiB less than the total as a workaround to this issue. + return GetUserNANDTotalSpace() - 0x100000; } u64 BISFactory::GetUserNANDTotalSpace() const { |