mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
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
@ -655,7 +655,7 @@ bool Engine::warnUserAboutUnsupportedGame() {
|
||||
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");
|
||||
message += _(extraMsg);
|
||||
message += "\n\n";
|
||||
|
@ -432,9 +432,9 @@ public:
|
||||
* Display an error message to the user that the game is not supported.
|
||||
*
|
||||
* @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.
|
||||
|
Loading…
Reference in New Issue
Block a user