Skip to content

Commit 32bdb97

Browse files
fix: enable -e option for pegasus (#167)
* fix: enable -e option for pegasus * fix warning for invalid -e frontend
1 parent 4c9b268 commit 32bdb97

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/settings.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,11 +557,13 @@ void RuntimeCfg::applyCli(bool &inputFolderSet, bool &gameListFolderSet,
557557
config->threadsSet = true;
558558
}
559559
if (parser->isSet("e")) {
560-
if (config->frontend == "attractmode") {
560+
QStringList allowedFe({"attractmode", "pegasus"});
561+
if (allowedFe.contains(config->frontend)) {
561562
config->frontendExtra = parser->value("e");
562563
} else {
563-
printf("\033[1;33mParameter emulator is ignored. Only "
564-
"applicable with frontend=attractmode.\n\033[0m");
564+
printf("\033[1;33mParameter -e is ignored. Only applicable "
565+
"with frontend %s.\n\033[0m",
566+
allowedFe.join(" or ").toUtf8().constData());
565567
}
566568
}
567569
if (parser->isSet("i")) {

0 commit comments

Comments
 (0)