Skip to content

Commit

Permalink
Extra hint when unsupported platform is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemba committed May 9, 2024
1 parent 8e16697 commit 49228c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ void RuntimeCfg::applyConfigIni(CfgType type, QSettings *settings,
parser->isSet("cache") && parser->value("cache") == "help";
QStringList flags = parseFlags();
if (!cacheHelp && !flags.contains("help")) {
if (parser->isSet("p")) {
printf("\033[1;31mUnknown platform '%s' provided. \033[0m",
parser->value("p").toUtf8().constData());
}
printf("\033[1;31mPlease set a valid platform with '-p "
"<PLATFORM>'\nCheck '--help' for a list of supported "
"platforms. Qutting.\n\033[0m");
Expand Down

0 comments on commit 49228c6

Please sign in to comment.