From f6015086e18360659552ec4f7ca898f20fad1d16 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Wed, 19 Dec 2018 06:31:26 +0000 Subject: ENGINES: Add GUIErrorMessageFormat to replace duplicated functions (#1455) --- engines/glk/glulxe/glulxe.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/glk/glulxe/glulxe.cpp') 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; } -- cgit v1.2.3