mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
Avoid qt canonicalFilePath usage
This commit is contained in:
parent
6374f92100
commit
b99cae7642
|
|
@ -341,15 +341,7 @@ EmuCallbacks main_application::CreateCallbacks()
|
|||
|
||||
callbacks.resolve_path = [](std::string_view sv)
|
||||
{
|
||||
// May result in an empty string if path does not exist
|
||||
auto result = QFileInfo(QString::fromUtf8(sv.data(), static_cast<int>(sv.size()))).canonicalFilePath().toStdString();
|
||||
|
||||
if (!result.empty())
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
return std::filesystem::weakly_canonical(sv).string();
|
||||
return fmt::replace_all(std::filesystem::weakly_canonical(sv).string(), "\\", "/");
|
||||
};
|
||||
|
||||
callbacks.get_font_dirs = []()
|
||||
|
|
|
|||
Loading…
Reference in a new issue