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

@@ -202,7 +202,7 @@ std::string FS2OTTD(const std::string &name)
#endif /* WITH_ICONV */
void ShowInfo(const char *str)
void ShowInfoI(const char *str)
{
fprintf(stderr, "%s\n", str);
}

View File

@@ -274,7 +274,7 @@ void CreateConsole()
_close(fd);
CloseHandle(hand);
ShowInfo("Unable to open an output handle to the console. Check known-bugs.txt for details.");
ShowInfoI("Unable to open an output handle to the console. Check known-bugs.txt for details.");
return;
}
@@ -339,7 +339,7 @@ static INT_PTR CALLBACK HelpDialogFunc(HWND wnd, UINT msg, WPARAM wParam, LPARAM
return FALSE;
}
void ShowInfo(const char *str)
void ShowInfoI(const char *str)
{
if (_has_console) {
fprintf(stderr, "%s\n", str);