mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 22:41:25 +12:00
fs: Optimize filesystem handle reconstruction
This commit is contained in:
parent
0bd64a0e72
commit
f7b845d49c
1 changed files with 1 additions and 0 deletions
|
@ -220,6 +220,7 @@ namespace fs
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
bool open(Args&&... args)
|
bool open(Args&&... args)
|
||||||
{
|
{
|
||||||
|
m_file.reset();
|
||||||
*this = fs::file(std::forward<Args>(args)...);
|
*this = fs::file(std::forward<Args>(args)...);
|
||||||
return m_file.operator bool();
|
return m_file.operator bool();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue