Skip to content

Commit

Permalink
Add default server cmd for demonstration
Browse files Browse the repository at this point in the history
  • Loading branch information
ClassicOldSong committed Sep 11, 2024
1 parent 1a3da39 commit 83dfea5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83dfea5

Please sign in to comment.