summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-09-20 04:09:23 +0200
committerZach Hilman <zachhilman@gmail.com>2018-09-22 01:53:33 +0200
commitba0873d33cf6a08c6f52df45b45a14dcf91f4cf0 (patch)
tree496d2d640261e5e71ea438f3aa98f7957aa89c3b /src/core
parentromfs: Implement CreateRomFS (diff)
downloadyuzu-ba0873d33cf6a08c6f52df45b45a14dcf91f4cf0.tar
yuzu-ba0873d33cf6a08c6f52df45b45a14dcf91f4cf0.tar.gz
yuzu-ba0873d33cf6a08c6f52df45b45a14dcf91f4cf0.tar.bz2
yuzu-ba0873d33cf6a08c6f52df45b45a14dcf91f4cf0.tar.lz
yuzu-ba0873d33cf6a08c6f52df45b45a14dcf91f4cf0.tar.xz
yuzu-ba0873d33cf6a08c6f52df45b45a14dcf91f4cf0.tar.zst
yuzu-ba0873d33cf6a08c6f52df45b45a14dcf91f4cf0.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/registered_cache.cpp2
-rw-r--r--src/core/file_sys/registered_cache.h2
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
auto out = dir->CreateFileRelative(path);
if (out == nullptr)
return InstallResult::ErrorCopyFailed;
- return copy(in, out) ? InstallResult::Success : InstallResult::ErrorCopyFailed;
+ return copy(in, out, 0x400000) ? InstallResult::Success : InstallResult::ErrorCopyFailed;
}
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;
using NcaID = std::array<u8, 0x10>;
using RegisteredCacheParsingFunction = std::function<VirtualFile(const VirtualFile&, const NcaID&)>;
-using VfsCopyFunction = std::function<bool(VirtualFile, VirtualFile)>;
+using VfsCopyFunction = std::function<bool(const VirtualFile&, const VirtualFile&, size_t)>;
enum class InstallResult {
Success,