mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-03 00:06:06 +00:00
Update sample configuration file
This commit is contained in:
parent
8960cc458f
commit
63f05b2baf
@ -18,7 +18,7 @@
|
||||
#packetsize = 1024
|
||||
|
||||
## Use of h265/HEVC video codec
|
||||
#h265 = false
|
||||
#hevc = false
|
||||
|
||||
## Default started application on host
|
||||
#app = Steam
|
||||
@ -26,7 +26,7 @@
|
||||
## Default used mapping for streaming
|
||||
## Searched for in $XDG_DATA_DIRS/moonlight or /usr/share/moonlight and /usr/local/share/moonlight
|
||||
## Mapping can also be user overrided in $XDG_CONFIG_DIR/moonlight or ~/.config/moonlight or current directory
|
||||
#mapping = mappings/default.conf
|
||||
#mapping = gamecontrollerdb.txt
|
||||
|
||||
## Enable selected input devices
|
||||
## By default all available input devices should be used
|
||||
@ -34,8 +34,8 @@
|
||||
## To use a different mapping then default another mapping should be declared above the input
|
||||
#input = /dev/input/event1
|
||||
|
||||
## Let GFE change graphical game settings for optimal performance and quality
|
||||
#sops = true
|
||||
## Stop GFE from changing graphical game settings for optimal performance and quality
|
||||
#nosops = false
|
||||
|
||||
## Play audio on host instead of streaming to client
|
||||
#localaudio = false
|
||||
@ -48,13 +48,20 @@
|
||||
## aml - hardware video decoder for ODROID-C1/C2
|
||||
## omx - hardware video decoder for Raspberry Pi
|
||||
## imx - hardware video decoder for i.MX6 devices
|
||||
## sdl - software decoder
|
||||
## fake - save to file (only available in debug builds)
|
||||
## x11 - software decoder
|
||||
## sdl - software decoder with SDL input and audio
|
||||
## fake - no audio and video
|
||||
#platform = default
|
||||
|
||||
## Directory to store encryption keys
|
||||
## By default keys are stored in $XDG_CACHE_DIR/moonlight or ~/.cache/moonlight
|
||||
#keydir = /dir/to/keys
|
||||
|
||||
## Enable QOS settings to optimize for internet instead of local network
|
||||
#remote = false
|
||||
|
||||
## Enable 5.1 surround sound
|
||||
#surround = false
|
||||
|
||||
## Load additional configuration files
|
||||
#config = /path/to/config
|
||||
|
@ -239,8 +239,11 @@ bool config_file_parse(char* filename, PCONFIGURATION config) {
|
||||
config->localaudio = strcmp("true", value) == 0;
|
||||
} else {
|
||||
for (int i=0;long_options[i].name != NULL;i++) {
|
||||
if (long_options[i].has_arg == required_argument && strcmp(long_options[i].name, key) == 0) {
|
||||
parse_argument(long_options[i].val, value, config);
|
||||
if (strcmp(long_options[i].name, key) == 0) {
|
||||
if (long_options[i].has_arg == required_argument)
|
||||
parse_argument(long_options[i].val, value, config);
|
||||
else if (strcmp("true", value) == 0)
|
||||
parse_argument(long_options[i].val, NULL, config);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user