mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-01 23:35:47 +00:00
Support remote optimizations in GFE
This commit is contained in:
parent
c4bd362a5d
commit
0f7e6c96a0
@ -91,6 +91,10 @@ Change the network packetsize to I<PACKETSIZE>.
|
||||
The packetsize should the smaller than the MTU of the network.
|
||||
By default a safe value of 1024 is used.
|
||||
|
||||
=item B<-remote>
|
||||
|
||||
Enable the optimizations for remote connections in GFE.
|
||||
|
||||
=item B<-app> [I<APP>]
|
||||
|
||||
Change the requested app to execute to I<APP>.
|
||||
|
@ -58,6 +58,7 @@ static struct option long_options[] = {
|
||||
{"platform", required_argument, 0, 'p'},
|
||||
{"save", required_argument, NULL, 'q'},
|
||||
{"keydir", required_argument, NULL, 'r'},
|
||||
{"remote", no_argument, NULL, 's'},
|
||||
{0, 0, 0, 0},
|
||||
};
|
||||
|
||||
@ -180,6 +181,9 @@ static void parse_argument(int c, char* value, PCONFIGURATION config) {
|
||||
case 'r':
|
||||
strcpy(config->key_dir, value);
|
||||
break;
|
||||
case 's':
|
||||
config->stream.remote = 1;
|
||||
break;
|
||||
case 1:
|
||||
if (config->action == NULL)
|
||||
config->action = value;
|
||||
@ -257,6 +261,7 @@ void config_parse(int argc, char* argv[], PCONFIGURATION config) {
|
||||
config->stream.fps = 60;
|
||||
config->stream.bitrate = -1;
|
||||
config->stream.packetSize = 1024;
|
||||
config->stream.remote = 0;
|
||||
|
||||
config->platform = "default";
|
||||
config->app = "Steam";
|
||||
@ -282,7 +287,7 @@ void config_parse(int argc, char* argv[], PCONFIGURATION config) {
|
||||
} else {
|
||||
int option_index = 0;
|
||||
int c;
|
||||
while ((c = getopt_long_only(argc, argv, "-abc:d:efg:h:i:j:k:lm:no:p:q:", long_options, &option_index)) != -1) {
|
||||
while ((c = getopt_long_only(argc, argv, "-abc:d:efg:h:i:j:k:lm:no:p:q:r:s", long_options, &option_index)) != -1) {
|
||||
parse_argument(c, optarg, config);
|
||||
}
|
||||
}
|
||||
|
@ -126,6 +126,7 @@ static void help() {
|
||||
printf("\t-60fps\t\t\tUse 60fps [default]\n");
|
||||
printf("\t-bitrate <bitrate>\tSpecify the bitrate in Kbps\n");
|
||||
printf("\t-packetsize <size>\tSpecify the maximum packetsize in bytes\n");
|
||||
printf("\t-remote\t\t\tEnable remote optimizations\n");
|
||||
printf("\t-app <app>\t\tName of app to stream\n");
|
||||
printf("\t-nosops\t\t\tDon't allow GFE to modify game settings\n");
|
||||
printf("\t-localaudio\t\tPlay audio locally\n");
|
||||
|
2
third_party/moonlight-common-c
vendored
2
third_party/moonlight-common-c
vendored
@ -1 +1 @@
|
||||
Subproject commit 7500382c2653eeb44068817d0a43c1d946410918
|
||||
Subproject commit 4d9cbd3c3dbbd03aebc3bba1e3ea841f6f3dd09f
|
Loading…
x
Reference in New Issue
Block a user