RiivolutionPatcher: Use FileInfo instead of IOFile when only checking for filesize.
This commit is contained in:
parent
0efff5167d
commit
4f82810845
|
@ -135,8 +135,8 @@ FileDataLoaderHostFS::GetExternalFileSize(std::string_view external_relative_pat
|
||||||
auto path = MakeAbsoluteFromRelative(external_relative_path);
|
auto path = MakeAbsoluteFromRelative(external_relative_path);
|
||||||
if (!path)
|
if (!path)
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
::File::IOFile f(*path, "rb");
|
::File::FileInfo f(*path);
|
||||||
if (!f)
|
if (!f.IsFile())
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
return f.GetSize();
|
return f.GetSize();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue