Skip to content

Commit

Permalink
fix #2083 and minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
RSDuck committed Oct 6, 2024
1 parent f13c70d commit aa443c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/frontend/qt_sdl/CLI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ CommandLineOptions* ManageArgs(QApplication& melon)
}
else
{
options->errorsToDisplay += "Option -a/--archive-file given, but no archive specified!";
Log(LogLevel::Error, "Option -a/--archive-file given, but no archive specified!");
}
}

Expand All @@ -108,7 +108,7 @@ CommandLineOptions* ManageArgs(QApplication& melon)
}
else
{
options->errorsToDisplay += "Option -A/--archive-file-gba given, but no archive specified!";
Log(LogLevel::Error, "Option -A/--archive-file-gba given, but no archive specified!");
}
}
#endif
Expand Down
2 changes: 0 additions & 2 deletions src/frontend/qt_sdl/CLI.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ namespace CLI {

struct CommandLineOptions
{
QStringList errorsToDisplay = {};

std::optional<QString> dsRomPath;
std::optional<QString> dsRomArchivePath;
std::optional<QString> gbaRomPath;
Expand Down
3 changes: 3 additions & 0 deletions src/frontend/qt_sdl/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@ int main(int argc, char** argv)
if (memberSyntaxUsed) printf("Warning: use the a.zip|b.nds format at your own risk!\n");

win->preloadROMs(dsfile, gbafile, options->boot);

if (options->fullscreen)
ToggleFullscreen(win);
}

int ret = melon.exec();
Expand Down

0 comments on commit aa443c8

Please sign in to comment.