VFS: Fix mounting non-existant paths (#13488)

This commit is contained in:
Elad Ashkenazi 2023-03-04 18:12:45 +02:00 committed by GitHub
parent 2de4c03faa
commit 8bc92a2cbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -327,6 +327,7 @@ EmuCallbacks main_application::CreateCallbacks()
callbacks.resolve_path = [](std::string_view sv)
{
// May result in an empty string if path does not exist
return QFileInfo(QString::fromUtf8(sv.data(), static_cast<int>(sv.size()))).canonicalFilePath().toStdString();
};