diff options
| author | 2018-09-19 22:09:23 -0400 | |
|---|---|---|
| committer | 2018-09-21 19:53:33 -0400 | |
| commit | ba0873d33cf6a08c6f52df45b45a14dcf91f4cf0 (patch) | |
| tree | 496d2d640261e5e71ea438f3aa98f7957aa89c3b /src/core/file_sys | |
| parent | romfs: Implement CreateRomFS (diff) | |
| download | yuzu-ba0873d33cf6a08c6f52df45b45a14dcf91f4cf0.tar.gz yuzu-ba0873d33cf6a08c6f52df45b45a14dcf91f4cf0.tar.xz yuzu-ba0873d33cf6a08c6f52df45b45a14dcf91f4cf0.zip | |
qt: Add UI elements for LayeredFS and related tools
Diffstat (limited to 'src/core/file_sys')
| -rw-r--r-- | src/core/file_sys/registered_cache.cpp | 2 | ||||
| -rw-r--r-- | src/core/file_sys/registered_cache.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cpp index dad7ae10b..0dda0b861 100644 --- a/src/core/file_sys/registered_cache.cpp +++ b/src/core/file_sys/registered_cache.cpp | |||
| @@ -480,7 +480,7 @@ InstallResult RegisteredCache::RawInstallNCA(std::shared_ptr<NCA> nca, const Vfs | |||
| 480 | auto out = dir->CreateFileRelative(path); | 480 | auto out = dir->CreateFileRelative(path); |
| 481 | if (out == nullptr) | 481 | if (out == nullptr) |
| 482 | return InstallResult::ErrorCopyFailed; | 482 | return InstallResult::ErrorCopyFailed; |
| 483 | return copy(in, out) ? InstallResult::Success : InstallResult::ErrorCopyFailed; | 483 | return copy(in, out, 0x400000) ? InstallResult::Success : InstallResult::ErrorCopyFailed; |
| 484 | } | 484 | } |
| 485 | 485 | ||
| 486 | bool RegisteredCache::RawInstallYuzuMeta(const CNMT& cnmt) { | 486 | bool RegisteredCache::RawInstallYuzuMeta(const CNMT& cnmt) { |
diff --git a/src/core/file_sys/registered_cache.h b/src/core/file_sys/registered_cache.h index f487b0cf0..c0cd59fc5 100644 --- a/src/core/file_sys/registered_cache.h +++ b/src/core/file_sys/registered_cache.h | |||
| @@ -27,7 +27,7 @@ struct ContentRecord; | |||
| 27 | 27 | ||
| 28 | using NcaID = std::array<u8, 0x10>; | 28 | using NcaID = std::array<u8, 0x10>; |
| 29 | using RegisteredCacheParsingFunction = std::function<VirtualFile(const VirtualFile&, const NcaID&)>; | 29 | using RegisteredCacheParsingFunction = std::function<VirtualFile(const VirtualFile&, const NcaID&)>; |
| 30 | using VfsCopyFunction = std::function<bool(VirtualFile, VirtualFile)>; | 30 | using VfsCopyFunction = std::function<bool(const VirtualFile&, const VirtualFile&, size_t)>; |
| 31 | 31 | ||
| 32 | enum class InstallResult { | 32 | enum class InstallResult { |
| 33 | Success, | 33 | Success, |