ENGINES: Do not pass string by reference to errorUnsupportedGame()
This allows to use translated strings directly
This commit is contained in:
parent
c874611c45
commit
a8ad61ca58
2 changed files with 3 additions and 3 deletions
|
@ -655,7 +655,7 @@ bool Engine::warnUserAboutUnsupportedGame() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Engine::errorUnsupportedGame(Common::String &extraMsg) {
|
void Engine::errorUnsupportedGame(Common::String extraMsg) {
|
||||||
Common::String message = extraMsg.empty() ? _("This game is not supported.") : _("This game is not supported for the following reason:\n\n");
|
Common::String message = extraMsg.empty() ? _("This game is not supported.") : _("This game is not supported for the following reason:\n\n");
|
||||||
message += _(extraMsg);
|
message += _(extraMsg);
|
||||||
message += "\n\n";
|
message += "\n\n";
|
||||||
|
|
|
@ -434,7 +434,7 @@ public:
|
||||||
* @param extraMsg This will be appended to the default message.
|
* @param extraMsg This will be appended to the default message.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
static void errorUnsupportedGame(Common::String &extraMsg);
|
static void errorUnsupportedGame(Common::String extraMsg);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the total play time.
|
* Get the total play time.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue