Codechange: use string/fmt instead of printf for grfmsg

This commit is contained in:
Rubidium
2023-04-18 21:24:42 +02:00
committed by rubidium42
parent dfe52da1ea
commit 7088f5b7c7
10 changed files with 284 additions and 290 deletions

View File

@@ -201,7 +201,8 @@ void ReloadNewGRFData(); // in saveload/afterload.cpp
void ResetNewGRFData();
void ResetPersistentNewGRFData();
void CDECL grfmsg(int severity, const char *str, ...) WARN_FORMAT(2, 3);
void GrfMsgI(int severity, const std::string &msg);
#define GrfMsg(severity, format_string, ...) GrfMsgI(severity, fmt::format(FMT_STRING(format_string), ## __VA_ARGS__))
bool GetGlobalVariable(byte param, uint32 *value, const GRFFile *grffile);