Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11774 from shuffle2/qtnext
DolphinQt: fix some usability issues
  • Loading branch information
lioncash committed Apr 25, 2023
2 parents 71a56d9 + b00e898 commit 8c2e924
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion Source/Core/DolphinQt/DolphinQt.manifest
Expand Up @@ -2,7 +2,6 @@
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<asmv3:application>
<asmv3:windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
</asmv3:windowsSettings>
</asmv3:application>
Expand Down
13 changes: 5 additions & 8 deletions Source/Core/DolphinQt/Main.cpp
Expand Up @@ -147,19 +147,16 @@ int main(int argc, char* argv[])
#endif
#endif

auto parser = CommandLineParse::CreateParser(CommandLineParse::ParserOptions::IncludeGUIOptions);
const optparse::Values& options = CommandLineParse::ParseArguments(parser.get(), argc, argv);
const std::vector<std::string> args = parser->args();

QCoreApplication::setOrganizationName(QStringLiteral("Dolphin Emulator"));
QCoreApplication::setOrganizationDomain(QStringLiteral("dolphin-emu.org"));
QCoreApplication::setApplicationName(QStringLiteral("dolphin-emu"));

#ifdef _WIN32
QApplication app(__argc, __argv);
#else
// QApplication will parse arguments and remove any it recognizes as targeting Qt
QApplication app(argc, argv);
#endif

auto parser = CommandLineParse::CreateParser(CommandLineParse::ParserOptions::IncludeGUIOptions);
const optparse::Values& options = CommandLineParse::ParseArguments(parser.get(), argc, argv);
const std::vector<std::string> args = parser->args();

#ifdef _WIN32
FreeConsole();
Expand Down

0 comments on commit 8c2e924

Please sign in to comment.