ENGINES: Add GUIErrorMessageFormat to replace duplicated functions (#1455)
This commit is contained in:
parent
e94ccdbe6b
commit
f6015086e1
17 changed files with 31 additions and 98 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue