ENGINES: Add GUIErrorMessageFormat to replace duplicated functions (#1455)

This commit is contained in:
Cameron Cawley 2018-12-19 06:31:26 +00:00 committed by Filippos Karapetis
parent e94ccdbe6b
commit f6015086e1
17 changed files with 31 additions and 98 deletions

View file

@ -399,6 +399,17 @@ void GUIErrorMessage(const Common::String &msg) {
}
}
void GUIErrorMessageFormat(const char *fmt, ...) {
Common::String msg;
va_list va;
va_start(va, fmt);
msg = Common::String::vformat(fmt, va);
va_end(va);
GUIErrorMessage(msg);
}
void Engine::checkCD() {
#if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__SYMBIAN32__)
// It is a known bug under Windows that games that play CD audio cause