mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-14 11:56:07 +00:00
Fps configurable in configuration file
This commit is contained in:
@@ -61,6 +61,7 @@ static struct option long_options[] = {
|
||||
{"remote", no_argument, NULL, 's'},
|
||||
{"fullscreen", no_argument, NULL, 't'},
|
||||
{"surround", no_argument, NULL, 'u'},
|
||||
{"fps", required_argument, NULL, 'v'},
|
||||
{0, 0, 0, 0},
|
||||
};
|
||||
|
||||
@@ -192,6 +193,9 @@ static void parse_argument(int c, char* value, PCONFIGURATION config) {
|
||||
case 'u':
|
||||
config->stream.audioConfiguration = AUDIO_CONFIGURATION_51_SURROUND;
|
||||
break;
|
||||
case 'v':
|
||||
config->stream.fps = atoi(value);
|
||||
break;
|
||||
case 1:
|
||||
if (config->action == NULL)
|
||||
config->action = value;
|
||||
|
||||
Reference in New Issue
Block a user