瀏覽代碼

frontend_common: Disable UTF-8 BOM in config

t895 2 年之前
父節點
當前提交
eedecaef96
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/frontend_common/config.cpp

+ 1 - 1
src/frontend_common/config.cpp

@@ -56,7 +56,7 @@ void Config::Initialize(const std::optional<std::string> config_path) {
 }
 
 void Config::WriteToIni() const {
-    if (const SI_Error rc = config->SaveFile(config_loc.c_str()); rc < 0) {
+    if (const SI_Error rc = config->SaveFile(config_loc.c_str(), false); rc < 0) {
         LOG_ERROR(Frontend, "Config file could not be saved!");
     }
 }