mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 16:22:47 +01:00
vfs_real: use open file size for getting size (#11016)
This commit is contained in:
parent
d8eb37fbec
commit
8bf46f48f8
1 changed files with 2 additions and 1 deletions
|
@ -283,7 +283,8 @@ std::size_t RealVfsFile::GetSize() const {
|
||||||
if (size) {
|
if (size) {
|
||||||
return *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) {
|
bool RealVfsFile::Resize(std::size_t new_size) {
|
||||||
|
|
Loading…
Reference in a new issue