diff options
author | Cameron Cawley | 2018-12-19 06:31:26 +0000 |
---|---|---|
committer | Filippos Karapetis | 2018-12-19 08:31:26 +0200 |
commit | f6015086e18360659552ec4f7ca898f20fad1d16 (patch) | |
tree | 3f132ccbeb663e74d6b408c2ce2d608d3e2b27d8 /engines/glk/glulxe/glulxe.cpp | |
parent | e94ccdbe6b0d650e04872ee3cc68fe13272f81a4 (diff) | |
download | scummvm-rg350-f6015086e18360659552ec4f7ca898f20fad1d16.tar.gz scummvm-rg350-f6015086e18360659552ec4f7ca898f20fad1d16.tar.bz2 scummvm-rg350-f6015086e18360659552ec4f7ca898f20fad1d16.zip |
ENGINES: Add GUIErrorMessageFormat to replace duplicated functions (#1455)
Diffstat (limited to 'engines/glk/glulxe/glulxe.cpp')
-rw-r--r-- | engines/glk/glulxe/glulxe.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/glk/glulxe/glulxe.cpp b/engines/glk/glulxe/glulxe.cpp index e2e1a477e5..aaa63b6141 100644 --- a/engines/glk/glulxe/glulxe.cpp +++ b/engines/glk/glulxe/glulxe.cpp @@ -52,23 +52,23 @@ Common::Error Glulxe::saveGameData(strid_t file, const Common::String &desc) { bool Glulxe::is_gamefile_valid() { if (_gameFile->size() < 8) { - GUIError(_("This is too short to be a valid Glulx file.")); + GUIErrorMessage(_("This is too short to be a valid Glulx file.")); return false; } if (_gameFile->readUint32BE() != MKTAG('G', 'l', 'u', 'l')) { - GUIError(_("This is not a valid Glulx file.")); + GUIErrorMessage(_("This is not a valid Glulx file.")); return false; } // We support version 2.0 through 3.1.* uint version = _gameFile->readUint32BE(); if (version < 0x20000) { - GUIError(_("This Glulx file is too old a version to execute.")); + GUIErrorMessage(_("This Glulx file is too old a version to execute.")); return false; } if (version >= 0x30200) { - GUIError(_("This Glulx file is too new a version to execute.")); + GUIErrorMessage(_("This Glulx file is too new a version to execute.")); return false; } |