diff options
Diffstat (limited to 'src/yuzu_cmd')
| -rw-r--r-- | src/yuzu_cmd/config.cpp | 8 | ||||
| -rw-r--r-- | src/yuzu_cmd/default_ini.h | 6 | ||||
| -rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 3 |
3 files changed, 13 insertions, 4 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp index a478b0a56..9d934e220 100644 --- a/src/yuzu_cmd/config.cpp +++ b/src/yuzu_cmd/config.cpp | |||
| @@ -138,6 +138,14 @@ void Config::ReadValues() { | |||
| 138 | Settings::values.use_gdbstub = sdl2_config->GetBoolean("Debugging", "use_gdbstub", false); | 138 | Settings::values.use_gdbstub = sdl2_config->GetBoolean("Debugging", "use_gdbstub", false); |
| 139 | Settings::values.gdbstub_port = | 139 | Settings::values.gdbstub_port = |
| 140 | static_cast<u16>(sdl2_config->GetInteger("Debugging", "gdbstub_port", 24689)); | 140 | static_cast<u16>(sdl2_config->GetInteger("Debugging", "gdbstub_port", 24689)); |
| 141 | |||
| 142 | // Web Service | ||
| 143 | Settings::values.enable_telemetry = | ||
| 144 | sdl2_config->GetBoolean("WebService", "enable_telemetry", true); | ||
| 145 | Settings::values.web_api_url = | ||
| 146 | sdl2_config->Get("WebService", "web_api_url", "https://api.yuzu-emu.org"); | ||
| 147 | Settings::values.yuzu_username = sdl2_config->Get("WebService", "yuzu_username", ""); | ||
| 148 | Settings::values.yuzu_token = sdl2_config->Get("WebService", "yuzu_token", ""); | ||
| 141 | } | 149 | } |
| 142 | 150 | ||
| 143 | void Config::Reload() { | 151 | void Config::Reload() { |
diff --git a/src/yuzu_cmd/default_ini.h b/src/yuzu_cmd/default_ini.h index d35c441e9..eaa64da39 100644 --- a/src/yuzu_cmd/default_ini.h +++ b/src/yuzu_cmd/default_ini.h | |||
| @@ -202,10 +202,8 @@ gdbstub_port=24689 | |||
| 202 | # Whether or not to enable telemetry | 202 | # Whether or not to enable telemetry |
| 203 | # 0: No, 1 (default): Yes | 203 | # 0: No, 1 (default): Yes |
| 204 | enable_telemetry = | 204 | enable_telemetry = |
| 205 | # Endpoint URL for submitting telemetry data | 205 | # URL for Web API |
| 206 | telemetry_endpoint_url = | 206 | web_api_url = https://api.yuzu-emu.org |
| 207 | # Endpoint URL to verify the username and token | ||
| 208 | verify_endpoint_url = | ||
| 209 | # Username and token for yuzu Web Service | 207 | # Username and token for yuzu Web Service |
| 210 | # See https://services.citra-emu.org/ for more info | 208 | # See https://services.citra-emu.org/ for more info |
| 211 | yuzu_username = | 209 | yuzu_username = |
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index b2559b717..1d951ca3f 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | #include <fmt/ostream.h> | 10 | #include <fmt/ostream.h> |
| 11 | 11 | ||
| 12 | #include "common/common_paths.h" | 12 | #include "common/common_paths.h" |
| 13 | #include "common/detached_tasks.h" | ||
| 13 | #include "common/file_util.h" | 14 | #include "common/file_util.h" |
| 14 | #include "common/logging/backend.h" | 15 | #include "common/logging/backend.h" |
| 15 | #include "common/logging/filter.h" | 16 | #include "common/logging/filter.h" |
| @@ -78,6 +79,7 @@ static void InitializeLogging() { | |||
| 78 | 79 | ||
| 79 | /// Application entry point | 80 | /// Application entry point |
| 80 | int main(int argc, char** argv) { | 81 | int main(int argc, char** argv) { |
| 82 | Common::DetachedTasks detached_tasks; | ||
| 81 | Config config; | 83 | Config config; |
| 82 | 84 | ||
| 83 | int option_index = 0; | 85 | int option_index = 0; |
| @@ -213,5 +215,6 @@ int main(int argc, char** argv) { | |||
| 213 | system.RunLoop(); | 215 | system.RunLoop(); |
| 214 | } | 216 | } |
| 215 | 217 | ||
| 218 | detached_tasks.WaitForAllTasks(); | ||
| 216 | return 0; | 219 | return 0; |
| 217 | } | 220 | } |