diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-04-16 20:32:18 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-09-21 22:43:10 +0200 |
commit | 43af31836ebe923f0bd34d85b74788e78d04b4e2 (patch) | |
tree | 84b0e1b488a80ef04181ff0892a566da72f1d6a9 /src/core/hle/service/filesystem/filesystem.cpp | |
parent | sdmc_factory: Add SD Card size getters (diff) | |
download | yuzu-43af31836ebe923f0bd34d85b74788e78d04b4e2.tar yuzu-43af31836ebe923f0bd34d85b74788e78d04b4e2.tar.gz yuzu-43af31836ebe923f0bd34d85b74788e78d04b4e2.tar.bz2 yuzu-43af31836ebe923f0bd34d85b74788e78d04b4e2.tar.lz yuzu-43af31836ebe923f0bd34d85b74788e78d04b4e2.tar.xz yuzu-43af31836ebe923f0bd34d85b74788e78d04b4e2.tar.zst yuzu-43af31836ebe923f0bd34d85b74788e78d04b4e2.zip |
Diffstat (limited to 'src/core/hle/service/filesystem/filesystem.cpp')
-rw-r--r-- | src/core/hle/service/filesystem/filesystem.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp index adc1917aa..d8debf612 100644 --- a/src/core/hle/service/filesystem/filesystem.cpp +++ b/src/core/hle/service/filesystem/filesystem.cpp @@ -29,11 +29,6 @@ namespace Service::FileSystem { -// Size of emulated sd card free space, reported in bytes. -// Just using 32GB because thats reasonable -// TODO(DarkLordZach): Eventually make this configurable in settings. -constexpr u64 EMULATED_SD_REPORTED_SIZE = 32000000000; - // A default size for normal/journal save data size if application control metadata cannot be found. // This should be large enough to satisfy even the most extreme requirements (~4.2GB) constexpr u64 SUFFICIENT_SAVE_DATA_SIZE = 0xF0000000; @@ -227,13 +222,6 @@ ResultVal<FileSys::VirtualDir> VfsDirectoryServiceWrapper::OpenDirectory(const s return MakeResult(dir); } -u64 VfsDirectoryServiceWrapper::GetFreeSpaceSize() const { - if (backing->IsWritable()) - return EMULATED_SD_REPORTED_SIZE; - - return 0; -} - ResultVal<FileSys::EntryType> VfsDirectoryServiceWrapper::GetEntryType( const std::string& path_) const { std::string path(FileUtil::SanitizePath(path_)); |