From d6fb0b44d7151f4a6e746c0a79aaf25a91ecdca6 Mon Sep 17 00:00:00 2001 From: AlexApps99 Date: Sun, 22 Mar 2020 17:49:32 +1300 Subject: [PATCH] Parse arguments before Qt --- Source/Core/DolphinQt/Main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/DolphinQt/Main.cpp b/Source/Core/DolphinQt/Main.cpp index afb79aaf97..8608a16eec 100644 --- a/Source/Core/DolphinQt/Main.cpp +++ b/Source/Core/DolphinQt/Main.cpp @@ -92,6 +92,10 @@ int main(int argc, char* argv[]) } #endif + auto parser = CommandLineParse::CreateParser(CommandLineParse::ParserOptions::IncludeGUIOptions); + const optparse::Values& options = CommandLineParse::ParseArguments(parser.get(), argc, argv); + const std::vector args = parser->args(); + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QCoreApplication::setOrganizationName(QStringLiteral("Dolphin Emulator")); @@ -109,10 +113,6 @@ int main(int argc, char* argv[]) QApplication::setFont(QApplication::font("QMenu")); #endif - auto parser = CommandLineParse::CreateParser(CommandLineParse::ParserOptions::IncludeGUIOptions); - const optparse::Values& options = CommandLineParse::ParseArguments(parser.get(), argc, argv); - const std::vector args = parser->args(); - #ifdef _WIN32 FreeConsole(); #endif