mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-08-29 05:20:38 +00:00
Default fullscreen and add window option
This commit is contained in:
+3
-2
@@ -59,7 +59,7 @@ static struct option long_options[] = {
|
|||||||
{"save", required_argument, NULL, 'q'},
|
{"save", required_argument, NULL, 'q'},
|
||||||
{"keydir", required_argument, NULL, 'r'},
|
{"keydir", required_argument, NULL, 'r'},
|
||||||
{"remote", no_argument, NULL, 's'},
|
{"remote", no_argument, NULL, 's'},
|
||||||
{"fullscreen", no_argument, NULL, 't'},
|
{"windowed", no_argument, NULL, 't'},
|
||||||
{"surround", no_argument, NULL, 'u'},
|
{"surround", no_argument, NULL, 'u'},
|
||||||
{"fps", required_argument, NULL, 'v'},
|
{"fps", required_argument, NULL, 'v'},
|
||||||
{0, 0, 0, 0},
|
{0, 0, 0, 0},
|
||||||
@@ -188,7 +188,7 @@ static void parse_argument(int c, char* value, PCONFIGURATION config) {
|
|||||||
config->stream.streamingRemotely = 1;
|
config->stream.streamingRemotely = 1;
|
||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
config->fullscreen = true;
|
config->fullscreen = false;
|
||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
config->stream.audioConfiguration = AUDIO_CONFIGURATION_51_SURROUND;
|
config->stream.audioConfiguration = AUDIO_CONFIGURATION_51_SURROUND;
|
||||||
@@ -285,6 +285,7 @@ void config_parse(int argc, char* argv[], PCONFIGURATION config) {
|
|||||||
config->config_file = NULL;
|
config->config_file = NULL;
|
||||||
config->sops = true;
|
config->sops = true;
|
||||||
config->localaudio = false;
|
config->localaudio = false;
|
||||||
|
config->fullscreen = true;
|
||||||
|
|
||||||
config->inputsCount = 0;
|
config->inputsCount = 0;
|
||||||
config->mapping = get_path("mappings/default.conf", getenv("XDG_DATA_DIRS"));
|
config->mapping = get_path("mappings/default.conf", getenv("XDG_DATA_DIRS"));
|
||||||
|
|||||||
+1
-1
@@ -139,7 +139,7 @@ static void help() {
|
|||||||
printf("\t-keydir <directory>\tLoad encryption keys from directory\n");
|
printf("\t-keydir <directory>\tLoad encryption keys from directory\n");
|
||||||
#ifdef HAVE_SDL
|
#ifdef HAVE_SDL
|
||||||
printf("\n Video options (SDL Only)\n\n");
|
printf("\n Video options (SDL Only)\n\n");
|
||||||
printf("\t-fullscreen\t\tMake window fullscreen\n");
|
printf("\t-windowed\t\tDisplay screen in a window\n");
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_EMBEDDED
|
#ifdef HAVE_EMBEDDED
|
||||||
printf("\n I/O options\n\n");
|
printf("\n I/O options\n\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user