mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Qt: simplify callbacks.resolve_path
This commit is contained in:
parent
7eee9e7b05
commit
5272dd951b
3 changed files with 7 additions and 12 deletions
|
@ -9,8 +9,6 @@
|
|||
|
||||
#include <clocale>
|
||||
|
||||
#include <QFileInfo>
|
||||
|
||||
// For now, a trivial constructor/destructor. May add command line usage later.
|
||||
headless_application::headless_application(int& argc, char** argv) : QCoreApplication(argc, argv)
|
||||
{
|
||||
|
@ -134,11 +132,6 @@ void headless_application::InitializeCallbacks()
|
|||
|
||||
callbacks.play_sound = [](const std::string&){};
|
||||
|
||||
callbacks.resolve_path = [](std::string_view sv)
|
||||
{
|
||||
return QFileInfo(QString::fromUtf8(sv.data(), static_cast<int>(sv.size()))).canonicalFilePath().toStdString();
|
||||
};
|
||||
|
||||
Emu.SetCallbacks(std::move(callbacks));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue