1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

fs: Optimize filesystem handle reconstruction

This commit is contained in:
Eladash 2021-05-11 22:09:46 +03:00 committed by Ivan
parent 0bd64a0e72
commit f7b845d49c

View File

@ -220,6 +220,7 @@ namespace fs
template <typename... Args>
bool open(Args&&... args)
{
m_file.reset();
*this = fs::file(std::forward<Args>(args)...);
return m_file.operator bool();
}