mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 16:31:28 +12:00
fs: Reimplement path resolving using std::filesystem::weakly_canonical
This commit is contained in:
parent
8c9090fd03
commit
0c4b2ff06b
6 changed files with 45 additions and 21 deletions
|
@ -26,8 +26,6 @@
|
|||
#include "Emu/Audio/FAudio/FAudioBackend.h"
|
||||
#endif
|
||||
|
||||
#include <QFileInfo> // This shouldn't be outside rpcs3qt...
|
||||
|
||||
LOG_CHANNEL(sys_log, "SYS");
|
||||
|
||||
/** Emu.Init() wrapper for user management */
|
||||
|
@ -123,10 +121,5 @@ EmuCallbacks main_application::CreateCallbacks()
|
|||
return result;
|
||||
};
|
||||
|
||||
callbacks.resolve_path = [](std::string_view sv)
|
||||
{
|
||||
return QFileInfo(QString::fromUtf8(sv.data(), static_cast<int>(sv.size()))).canonicalFilePath().toStdString();
|
||||
};
|
||||
|
||||
return callbacks;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue