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