summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-07-09 18:32:07 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-07-10 06:37:39 +0200
commit17242a886590ec06dfb56d2e50679485dfb64905 (patch)
tree19a2eaffa2df5e21b312222351ac23d0a4cb36e1
parentbis_factory: Use hardware default NAND partition sizes (diff)
downloadyuzu-17242a886590ec06dfb56d2e50679485dfb64905.tar
yuzu-17242a886590ec06dfb56d2e50679485dfb64905.tar.gz
yuzu-17242a886590ec06dfb56d2e50679485dfb64905.tar.bz2
yuzu-17242a886590ec06dfb56d2e50679485dfb64905.tar.lz
yuzu-17242a886590ec06dfb56d2e50679485dfb64905.tar.xz
yuzu-17242a886590ec06dfb56d2e50679485dfb64905.tar.zst
yuzu-17242a886590ec06dfb56d2e50679485dfb64905.zip
-rw-r--r--src/core/file_sys/sdmc_factory.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/file_sys/sdmc_factory.cpp b/src/core/file_sys/sdmc_factory.cpp
index 5113a1ca6..6f732e4d8 100644
--- a/src/core/file_sys/sdmc_factory.cpp
+++ b/src/core/file_sys/sdmc_factory.cpp
@@ -10,6 +10,8 @@
namespace FileSys {
+constexpr u64 SDMC_TOTAL_SIZE = 0x10000000000; // 1 TiB
+
SDMCFactory::SDMCFactory(VirtualDir dir_)
: dir(std::move(dir_)), contents(std::make_unique<RegisteredCache>(
GetOrCreateDirectoryRelative(dir, "/Nintendo/Contents/registered"),
@@ -46,7 +48,7 @@ u64 SDMCFactory::GetSDMCFreeSpace() const {
}
u64 SDMCFactory::GetSDMCTotalSpace() const {
- return static_cast<u64>(Settings::values.sdmc_size);
+ return SDMC_TOTAL_SIZE;
}
} // namespace FileSys