Rename ShowInfo to ShowInfoI, add ShowInfo fmt macro

This commit is contained in:
Jonathan G Rennison
2024-01-15 17:26:09 +00:00
parent fe2f2207c1
commit 3af99bd2dc
6 changed files with 18 additions and 11 deletions

View File

@@ -259,7 +259,7 @@ void CDECL ShowInfoF(const char *str, ...)
va_start(va, str);
vseprintf(buf, lastof(buf), str, va);
va_end(va);
ShowInfo(buf);
ShowInfoI(buf);
}
/**
@@ -343,7 +343,7 @@ static void ShowHelp()
#if !defined(_WIN32)
printf("%s\n", buf);
#else
ShowInfo(buf);
ShowInfoI(buf);
#endif
}
@@ -402,7 +402,7 @@ static void WriteSavegameInfo(const char *name)
#if !defined(_WIN32)
printf("%s\n", buf);
#else
ShowInfo(buf);
ShowInfoI(buf);
#endif
}
@@ -445,7 +445,7 @@ static void WriteSavegameDebugData(const char *name)
#if !defined(_WIN32)
printf("%s\n", buf);
#else
ShowInfo(buf);
ShowInfoI(buf);
#endif
free(buf);
}
@@ -805,7 +805,7 @@ int openttd_main(int argc, char *argv[])
videodriver = "dedicated";
blitter = "null";
dedicated = true;
SetDebugString("net=3", ShowInfo);
SetDebugString("net=3", ShowInfoI);
if (mgo.opt != nullptr) {
scanner->dedicated_host = ParseFullConnectionString(mgo.opt, scanner->dedicated_port);
}
@@ -829,7 +829,7 @@ int openttd_main(int argc, char *argv[])
#if defined(_WIN32)
CreateConsole();
#endif
if (mgo.opt != nullptr) SetDebugString(mgo.opt, ShowInfo);
if (mgo.opt != nullptr) SetDebugString(mgo.opt, ShowInfoI);
break;
}
case 'e': _switch_mode = (_switch_mode == SM_LOAD_GAME || _switch_mode == SM_LOAD_SCENARIO ? SM_LOAD_SCENARIO : SM_EDITOR); break;