aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/main_window.cpp
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2026-01-30 17:27:48 +0100
committercrueter <crueter@eden-emu.dev>2026-01-30 17:27:48 +0100
commit81367e6e33ed10a3795857817bacd50d927b082a (patch)
treed5dd97bc8ecc15d6b1b120c06d5f3dea0ef9d14f /src/yuzu/main_window.cpp
parent68aaab5947a893f2f8f15ed962a8bde903e16d58 (diff)
[qt] allow launch like: eden -f <game path>, instead of eden -f -g <game path> (#3420)
One of those annoyances that stubs your toe Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3420 Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/yuzu/main_window.cpp')
-rw-r--r--src/yuzu/main_window.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/yuzu/main_window.cpp b/src/yuzu/main_window.cpp
index 85980b5396..cffd9f4444 100644
--- a/src/yuzu/main_window.cpp
+++ b/src/yuzu/main_window.cpp
@@ -620,10 +620,7 @@ MainWindow::MainWindow(bool has_broken_vulkan)
bool is_fullscreen = false;
// Preserves drag/drop functionality
- if (args.size() == 2 && !args[1].startsWith(QChar::fromLatin1('-'))) {
- game_path = args[1];
- has_gamepath = true;
- } else for (int i = 1; i < args.size(); ++i) {
+ for (int i = 1; i < args.size(); ++i) {
if (args[i] == QStringLiteral("-f")) {
// Launch game in fullscreen mode
is_fullscreen = true;
@@ -653,10 +650,14 @@ MainWindow::MainWindow(bool has_broken_vulkan)
// Launch game at path
game_path = args[++i];
has_gamepath = true;
- } else if (args[i] == QStringLiteral("-qlaunch"))
+ } else if (args[i] == QStringLiteral("-qlaunch")) {
should_launch_qlaunch = true;
- else if (args[i] == QStringLiteral("-setup"))
+ } else if (args[i] == QStringLiteral("-setup")) {
should_launch_setup = true;
+ } else {
+ game_path = args[i];
+ has_gamepath = true;
+ }
}
// Override fullscreen setting if gamepath or argument is provided