From 8eacfceb6a14a9862eae8e82fbfc06a0a8d7fad3 Mon Sep 17 00:00:00 2001 From: zhupengfei Date: Sun, 23 Feb 2020 15:22:41 +0800 Subject: [PATCH] layered_fs: Fix missing file size update This was a silly typo from a previous change. --- src/core/file_sys/layered_fs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/file_sys/layered_fs.cpp b/src/core/file_sys/layered_fs.cpp index a77ab38f1..9d5fbf7c2 100644 --- a/src/core/file_sys/layered_fs.cpp +++ b/src/core/file_sys/layered_fs.cpp @@ -177,6 +177,7 @@ void LayeredFS::LoadRelocations() { auto* file = file_path_map.at(path); file->relocation.type = 1; file->relocation.replace_file_path = directory + virtual_name; + file->relocation.size = FileUtil::GetSize(directory + virtual_name); LOG_INFO(Service_FS, "LayeredFS replacement file in use for {}", path); return true; };