summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-06-16 22:43:14 +0200
committerLiam <byteslice@airmail.cc>2023-06-16 22:43:14 +0200
commit94e7cb05da68a59fcaa3e5b51fc15cdbf5577299 (patch)
tree58b95133fabaef53f28c6f6dbed8b2d733d69f5e /src/core
parentpatch_manager: remove unnecessary GetSize calls (diff)
downloadyuzu-94e7cb05da68a59fcaa3e5b51fc15cdbf5577299.tar
yuzu-94e7cb05da68a59fcaa3e5b51fc15cdbf5577299.tar.gz
yuzu-94e7cb05da68a59fcaa3e5b51fc15cdbf5577299.tar.bz2
yuzu-94e7cb05da68a59fcaa3e5b51fc15cdbf5577299.tar.lz
yuzu-94e7cb05da68a59fcaa3e5b51fc15cdbf5577299.tar.xz
yuzu-94e7cb05da68a59fcaa3e5b51fc15cdbf5577299.tar.zst
yuzu-94e7cb05da68a59fcaa3e5b51fc15cdbf5577299.zip
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/vfs_real.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/file_sys/vfs_real.cpp b/src/core/file_sys/vfs_real.cpp
index a8fdc8f3e..fcc81a664 100644
--- a/src/core/file_sys/vfs_real.cpp
+++ b/src/core/file_sys/vfs_real.cpp
@@ -270,6 +270,7 @@ std::size_t RealVfsFile::GetSize() const {
}
bool RealVfsFile::Resize(std::size_t new_size) {
+ size.reset();
base.RefreshReference(path, perms, *reference);
return reference->file ? reference->file->SetSize(new_size) : false;
}
@@ -295,6 +296,7 @@ std::size_t RealVfsFile::Read(u8* data, std::size_t length, std::size_t offset)
}
std::size_t RealVfsFile::Write(const u8* data, std::size_t length, std::size_t offset) {
+ size.reset();
base.RefreshReference(path, perms, *reference);
if (!reference->file || !reference->file->Seek(static_cast<s64>(offset))) {
return 0;