diff options
| author | Mai <mai.iam2048@gmail.com> | 2023-04-25 15:24:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-25 15:24:44 -0400 |
| commit | 8c2e9242555bdcbaa0067658bf8a4a41d6936405 (patch) | |
| tree | e0f241a4f5ff02b0cc311e20beb6220f0b38c469 /Source | |
| parent | 71a56d9e041a227a911b1ff1b36c5bbb4f905b10 (diff) | |
| parent | b00e898affc7dd81baecacbd421a0855964b3f75 (diff) | |
Merge pull request #11774 from shuffle2/qtnext
DolphinQt: fix some usability issues
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/DolphinQt/DolphinQt.manifest | 1 | ||||
| -rw-r--r-- | Source/Core/DolphinQt/Main.cpp | 13 |
2 files changed, 5 insertions, 9 deletions
diff --git a/Source/Core/DolphinQt/DolphinQt.manifest b/Source/Core/DolphinQt/DolphinQt.manifest index 211b0bb068..f6e81b516f 100644 --- a/Source/Core/DolphinQt/DolphinQt.manifest +++ b/Source/Core/DolphinQt/DolphinQt.manifest @@ -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> diff --git a/Source/Core/DolphinQt/Main.cpp b/Source/Core/DolphinQt/Main.cpp index 37415224dd..8e1e63d030 100644 --- a/Source/Core/DolphinQt/Main.cpp +++ b/Source/Core/DolphinQt/Main.cpp @@ -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(); |
