lime_sdl: --windowed option is now valid, although adding it has no effect

The SDL executable is always windowed unless explicitly made fullscreen.
This change is just to avoid error text when using the option interchangably between `lime_qt` and `lime_sdl`
This commit is contained in:
OpenSauce04 2024-10-19 23:48:25 +01:00
parent 2fbac69599
commit 3c03b2b39f

View File

@ -226,11 +226,12 @@ void LaunchSdlFrontend(int argc, char** argv) {
{"fullscreen", no_argument, 0, 'f'},
{"help", no_argument, 0, 'h'},
{"version", no_argument, 0, 'v'},
{"windowed", no_argument, 0, 'w'},
{0, 0, 0, 0},
};
while (optind < argc) {
int arg = getopt_long(argc, argv, "g:i:m:nr:p:fhv", long_options, &option_index);
int arg = getopt_long(argc, argv, "g:i:m:nr:p:fhvw", long_options, &option_index);
if (arg != -1) {
switch (static_cast<char>(arg)) {
case 'g':