From 15fe8f1c51f2821c111671de3d1f363cb41fd407 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Thu, 13 Jul 2017 18:34:37 +0300 Subject: [PATCH] Fix cmdline start --- rpcs3/main.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/rpcs3/main.cpp b/rpcs3/main.cpp index f7d5fd7e99..607913c92a 100644 --- a/rpcs3/main.cpp +++ b/rpcs3/main.cpp @@ -3,6 +3,8 @@ #include #include +#include +#include #include "rpcs3_app.h" #ifdef _WIN32 @@ -34,9 +36,13 @@ int main(int argc, char** argv) if (parser.positionalArguments().length() > 0) { - Emu.SetPath(sstr(parser.positionalArguments().at(0))); - Emu.Load(); - Emu.Run(); + // Ugly workaround + QTimer::singleShot(2, [path = sstr(QFileInfo(parser.positionalArguments().at(0)).canonicalFilePath())] + { + Emu.SetPath(path); + Emu.Load(); + Emu.Run(); + }); } return app.exec();