early-access version 2622

main
pineappleEA 2022-03-30 03:46:56 +02:00
parent e2ba36a19f
commit 99902693a4
2 changed files with 11 additions and 4 deletions

View File

@ -1,7 +1,7 @@
yuzu emulator early access
=============
This is the source code for early-access 2621.
This is the source code for early-access 2622.
## Legal Notice

View File

@ -293,8 +293,6 @@ GMainWindow::GMainWindow()
MigrateConfigFiles();
ui->action_Fullscreen->setChecked(false);
#if defined(HAVE_SDL2) && !defined(_WIN32)
SDL_InitSubSystem(SDL_INIT_VIDEO);
// SDL disables the screen saver by default, and setting the hint
@ -312,17 +310,20 @@ GMainWindow::GMainWindow()
}
QString game_path;
bool has_gamepath = false;
bool is_fullscreen = false;
for (int i = 1; i < args.size(); ++i) {
// Preserves drag/drop functionality
if (args.size() == 2 && !args[1].startsWith(QChar::fromLatin1('-'))) {
game_path = args[1];
has_gamepath = true;
break;
}
// Launch game in fullscreen mode
if (args[i] == QStringLiteral("-f")) {
ui->action_Fullscreen->setChecked(true);
is_fullscreen = true;
continue;
}
@ -365,9 +366,15 @@ GMainWindow::GMainWindow()
}
game_path = args[++i];
has_gamepath = true;
}
}
// Override fullscreen setting if gamepath or argument is provided
if (has_gamepath || is_fullscreen) {
ui->action_Fullscreen->setChecked(is_fullscreen);
}
if (!game_path.isEmpty()) {
BootGame(game_path);
}