RiivolutionPatcher: Use FileInfo instead of IOFile when only checking for filesize.

This commit is contained in:
Admiral H. Curtiss 2021-10-23 17:06:55 +02:00
parent 0efff5167d
commit 4f82810845
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB
1 changed files with 2 additions and 2 deletions

View File

@ -135,8 +135,8 @@ FileDataLoaderHostFS::GetExternalFileSize(std::string_view external_relative_pat
auto path = MakeAbsoluteFromRelative(external_relative_path);
if (!path)
return std::nullopt;
::File::IOFile f(*path, "rb");
if (!f)
::File::FileInfo f(*path);
if (!f.IsFile())
return std::nullopt;
return f.GetSize();
}