summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar lat9nq2021-10-15 12:14:09 -0400
committerGravatar GitHub2021-10-15 12:14:09 -0400
commit851fe91b6924d04455abc199124f584d85992552 (patch)
treed838063522535bbc69b0e150f1b13664355bdf07
parentsettings_ui: Better NVDEC Description For Each Video Rendering Option (#7165) (diff)
downloadyuzu-851fe91b6924d04455abc199124f584d85992552.tar.gz
yuzu-851fe91b6924d04455abc199124f584d85992552.tar.xz
yuzu-851fe91b6924d04455abc199124f584d85992552.zip
config: Read network_interface
Let's yuzu_cmd use a network interface. Also adds it to the default ini.
Diffstat (limited to '')
-rw-r--r--src/yuzu_cmd/config.cpp3
-rw-r--r--src/yuzu_cmd/default_ini.h6
2 files changed, 9 insertions, 0 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp
index 434518d53..8ca20679a 100644
--- a/src/yuzu_cmd/config.cpp
+++ b/src/yuzu_cmd/config.cpp
@@ -518,6 +518,9 @@ void Config::ReadValues() {
518 ReadSetting("WebService", Settings::values.web_api_url); 518 ReadSetting("WebService", Settings::values.web_api_url);
519 ReadSetting("WebService", Settings::values.yuzu_username); 519 ReadSetting("WebService", Settings::values.yuzu_username);
520 ReadSetting("WebService", Settings::values.yuzu_token); 520 ReadSetting("WebService", Settings::values.yuzu_token);
521
522 // Network
523 ReadSetting("Network", Settings::values.network_interface);
521} 524}
522 525
523void Config::Reload() { 526void Config::Reload() {
diff --git a/src/yuzu_cmd/default_ini.h b/src/yuzu_cmd/default_ini.h
index 8119a50d8..339dca766 100644
--- a/src/yuzu_cmd/default_ini.h
+++ b/src/yuzu_cmd/default_ini.h
@@ -428,6 +428,12 @@ web_api_url = https://api.yuzu-emu.org
428yuzu_username = 428yuzu_username =
429yuzu_token = 429yuzu_token =
430 430
431[Network]
432# Name of the network interface device to use with yuzu LAN play.
433# e.g. On *nix: 'enp7s0', 'wlp6s0u1u3u3', 'lo'
434# e.g. On Windows: 'Ethernet', 'Wi-Fi'
435network_interface =
436
431[AddOns] 437[AddOns]
432# Used to disable add-ons 438# Used to disable add-ons
433# List of title IDs of games that will have add-ons disabled (separated by '|'): 439# List of title IDs of games that will have add-ons disabled (separated by '|'):