From 83dfea5d1eb8ce380f8474008b4acba7e0696109 Mon Sep 17 00:00:00 2001 From: Yukino Song Date: Wed, 11 Sep 2024 09:45:10 +0800 Subject: [PATCH] Add default server cmd for demonstration --- src/config.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config.cpp b/src/config.cpp index 2edcc115..59b4b01a 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -1283,7 +1283,10 @@ namespace config { // Create empty config file if it does not exist if (!fs::exists(sunshine.config_file)) { - std::ofstream { sunshine.config_file }; + auto cfg_file = std::ofstream { sunshine.config_file }; + #ifdef _WIN32 + cfg_file << "server_cmd = [{\"name\":\"Bubbles\",\"cmd\":\"bubbles.scr\",\"elevated\":false}]\n"; + #endif } // Read config file