mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-04-21 10:51:35 -06:00
lime: Added --no-gui long option equivalent to -n
This commit is contained in:
parent
afb14047e5
commit
36932c04a2
@ -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";
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user