lime: Added --no-gui long option equivalent to -n

This commit is contained in:
OpenSauce04 2024-10-22 21:09:41 +01:00
parent afb14047e5
commit 36932c04a2
2 changed files with 2 additions and 5 deletions

View File

@ -12,7 +12,7 @@ constexpr char help_string[] =
"-p, --movie-play [path] Play a TAS movie located at the given path\n"
"-r, --movie-record [path] Record a TAS movie to the given file path\n"
"-a, --movie-record-author [author] Set the author for the recorded TAS movie (to be used alongside --movie-record)\n"
"-n Load the lightweight SDL frontend instead of the usual Qt frontend\n"
"-n, --no-gui Use the lightweight SDL frontend instead of the usual Qt frontend\n"
"-m, --multiplayer [nick:password@address:port] Nickname, password, address and port for multiplayer\n"
"-v, --version Output version information and exit\n"
"-w, --windowed Start in windowed mode";

View File

@ -11,10 +11,7 @@ int main(int argc, char* argv[]) {
#if ENABLE_QT
bool no_gui = false;
for (int i = 1; i < argc; i++) {
if (argv[i][0] != '-')
continue;
if (argv[i][1] == 'n') {
if (strcmp(argv[i], "--no-gui") == 0 || strcmp(argv[i], "-n") == 0) {
no_gui = true;
}
}