summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-07-06 23:43:53 +0200
committerGitHub <noreply@github.com>2023-07-06 23:43:53 +0200
commit8bf46f48f80fce7bcc7337b100a845563fabc1d8 (patch)
tree76545c092e1ccc47fbbfa7b96b36ddb4f0d117be
parentMerge pull request #10994 from liamwhite/ue4-preferred (diff)
downloadyuzu-8bf46f48f80fce7bcc7337b100a845563fabc1d8.tar
yuzu-8bf46f48f80fce7bcc7337b100a845563fabc1d8.tar.gz
yuzu-8bf46f48f80fce7bcc7337b100a845563fabc1d8.tar.bz2
yuzu-8bf46f48f80fce7bcc7337b100a845563fabc1d8.tar.lz
yuzu-8bf46f48f80fce7bcc7337b100a845563fabc1d8.tar.xz
yuzu-8bf46f48f80fce7bcc7337b100a845563fabc1d8.tar.zst
yuzu-8bf46f48f80fce7bcc7337b100a845563fabc1d8.zip
-rw-r--r--src/core/file_sys/vfs_real.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/file_sys/vfs_real.cpp b/src/core/file_sys/vfs_real.cpp
index b0515ec05..1c706e4d8 100644
--- a/src/core/file_sys/vfs_real.cpp
+++ b/src/core/file_sys/vfs_real.cpp
@@ -283,7 +283,8 @@ std::size_t RealVfsFile::GetSize() const {
if (size) {
return *size;
}
- return FS::GetSize(path);
+ auto lk = base.RefreshReference(path, perms, *reference);
+ return reference->file ? reference->file->GetSize() : 0;
}
bool RealVfsFile::Resize(std::size_t new_size) {