mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-16 15:55:30 +00:00
sdmc_factory: Set the SDMC total size to 1 TiB
We should not be limited by the SDMC's partition size, set this to 1 TiB. Hardware is limited to the max allowed by the MBR partition table which is 2 TiB.
This commit is contained in:
parent
0373ead96e
commit
17242a8865
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
namespace FileSys {
|
namespace FileSys {
|
||||||
|
|
||||||
|
constexpr u64 SDMC_TOTAL_SIZE = 0x10000000000; // 1 TiB
|
||||||
|
|
||||||
SDMCFactory::SDMCFactory(VirtualDir dir_)
|
SDMCFactory::SDMCFactory(VirtualDir dir_)
|
||||||
: dir(std::move(dir_)), contents(std::make_unique<RegisteredCache>(
|
: dir(std::move(dir_)), contents(std::make_unique<RegisteredCache>(
|
||||||
GetOrCreateDirectoryRelative(dir, "/Nintendo/Contents/registered"),
|
GetOrCreateDirectoryRelative(dir, "/Nintendo/Contents/registered"),
|
||||||
|
@ -46,7 +48,7 @@ u64 SDMCFactory::GetSDMCFreeSpace() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
u64 SDMCFactory::GetSDMCTotalSpace() const {
|
u64 SDMCFactory::GetSDMCTotalSpace() const {
|
||||||
return static_cast<u64>(Settings::values.sdmc_size);
|
return SDMC_TOTAL_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace FileSys
|
} // namespace FileSys
|
||||||
|
|
Loading…
Reference in a new issue