@@ -92,12 +92,12 @@ void ClientConfigStore::SaveInternal(const std::string& playerID, int skillRatin
9292 Json::CharReaderBuilder builder;
9393 std::string errs;
9494 if (!Json::parseFromStream (builder, in, &cfg, &errs)) {
95- gi_.Com_PrintFmt (" %s : parse error in %s: %s \n " , __FUNCTION__, path.c_str (), errs.c_str ());
95+ gi_.Com_PrintFmt (" {} : parse error in {}: {} \n " , __FUNCTION__, path.c_str (), errs.c_str ());
9696 cfg = Json::Value (Json::objectValue);
9797 }
9898 }
9999 else {
100- gi_.Com_PrintFmt (" %s : creating new player config for missing file %s \n " , __FUNCTION__, path.c_str ());
100+ gi_.Com_PrintFmt (" {} : creating new player config for missing file {} \n " , __FUNCTION__, path.c_str ());
101101 }
102102 }
103103
@@ -270,13 +270,13 @@ void ClientConfigStore::SaveInternal(const std::string& playerID, int skillRatin
270270
271271 try {
272272 if (!EnsurePlayerConfigDirectory ()) {
273- gi_.Com_PrintFmt (" %s : failed to ensure player config directory\n " , __FUNCTION__);
273+ gi_.Com_PrintFmt (" {} : failed to ensure player config directory\n " , __FUNCTION__);
274274 return ;
275275 }
276276
277277 std::ofstream out (path);
278278 if (!out.is_open ()) {
279- gi_.Com_PrintFmt (" %s : failed to write %s \n " , __FUNCTION__, path.c_str ());
279+ gi_.Com_PrintFmt (" {} : failed to write {} \n " , __FUNCTION__, path.c_str ());
280280 return ;
281281 }
282282
@@ -286,10 +286,10 @@ void ClientConfigStore::SaveInternal(const std::string& playerID, int skillRatin
286286 writer->write (cfg, &out);
287287 out.close ();
288288
289- gi_.Com_PrintFmt (" %s : saved updates for %s \n " , __FUNCTION__, playerID.c_str ());
289+ gi_.Com_PrintFmt (" {} : saved updates for {} \n " , __FUNCTION__, playerID.c_str ());
290290 }
291291 catch (const std::exception& e) {
292- gi_.Com_PrintFmt (" %s : exception: %s \n " , __FUNCTION__, e.what ());
292+ gi_.Com_PrintFmt (" {} : exception: {} \n " , __FUNCTION__, e.what ());
293293 }
294294}
295295/*
0 commit comments