mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Fix cmdline start
This commit is contained in:
parent
ce7b55871b
commit
15fe8f1c51
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QCommandLineParser>
|
#include <QCommandLineParser>
|
||||||
|
#include <QFileInfo>
|
||||||
|
#include <QTimer>
|
||||||
|
|
||||||
#include "rpcs3_app.h"
|
#include "rpcs3_app.h"
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
@ -34,9 +36,13 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
if (parser.positionalArguments().length() > 0)
|
if (parser.positionalArguments().length() > 0)
|
||||||
{
|
{
|
||||||
Emu.SetPath(sstr(parser.positionalArguments().at(0)));
|
// Ugly workaround
|
||||||
Emu.Load();
|
QTimer::singleShot(2, [path = sstr(QFileInfo(parser.positionalArguments().at(0)).canonicalFilePath())]
|
||||||
Emu.Run();
|
{
|
||||||
|
Emu.SetPath(path);
|
||||||
|
Emu.Load();
|
||||||
|
Emu.Run();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
|
Loading…
Reference in New Issue
Block a user