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();