fs: Lock when doing case insensitive search
* Dark Souls does fs lookups from different threads
This commit is contained in:
parent
27e9026f5d
commit
ceb7e300e5
|
@ -54,6 +54,7 @@ std::filesystem::path MntPoints::GetHostPath(const std::string& guest_directory)
|
|||
|
||||
// If the path does not exist attempt to verify this.
|
||||
// Retrieve parent path until we find one that exists.
|
||||
std::scoped_lock lk{m_mutex};
|
||||
path_parts.clear();
|
||||
auto current_path = host_path;
|
||||
while (!std::filesystem::exists(current_path)) {
|
||||
|
|
Loading…
Reference in New Issue