internal: embed example config (#10608)

This commit is contained in:
Kamikadze 2025-06-02 22:36:44 +05:00 committed by GitHub
parent 16c62a6dbb
commit ef2c73af80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 307 deletions

View file

@ -849,7 +849,7 @@ std::optional<std::string> CConfigManager::generateConfig(std::string configPath
Debug::log(WARN, "No config file found; attempting to generate.");
std::ofstream ofs;
ofs.open(configPath, std::ios::trunc);
ofs << AUTOCONFIG;
ofs << AUTOGENERATED_PREFIX << EXAMPLE_CONFIG;
ofs.close();
if (!std::filesystem::exists(configPath))