VERY experimental Nintendo Switch 2 emulator
C++
vfs_real: use open file size for getting size (#11016)
liamwhitee6425500d369
diff --git a/src/core/file_sys/vfs_real.cpp b/src/core/file_sys/vfs_real.cppindex b0515ec058..1c706e4d8f 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) {