aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2013-01-28 07:15:06 +0100
committerStrangerke2013-01-28 07:15:06 +0100
commit623360cf15173d9b0dfc79acb62732af15c3b095 (patch)
tree86ce83db8dcfeabaf43bb222b9a41c9397b0a1f2
parenta896975962078be403cee562598656caae50bb03 (diff)
downloadscummvm-rg350-623360cf15173d9b0dfc79acb62732af15c3b095.tar.gz
scummvm-rg350-623360cf15173d9b0dfc79acb62732af15c3b095.tar.bz2
scummvm-rg350-623360cf15173d9b0dfc79acb62732af15c3b095.zip
HOPKINS: Add fallback alternative for the computer font file, for the BeOS and OS/2 versions
-rw-r--r--engines/hopkins/computer.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/hopkins/computer.cpp b/engines/hopkins/computer.cpp
index e44b77c317..eef4a64f3e 100644
--- a/engines/hopkins/computer.cpp
+++ b/engines/hopkins/computer.cpp
@@ -75,11 +75,16 @@ void ComputerManager::setTextMode() {
_vm->_graphicsManager.lockScreen();
_vm->_graphicsManager.clearScreen();
_vm->_graphicsManager.unlockScreen();
- //SET_MODE(SCREEN_WIDTH, SCREEN_HEIGHT);
_vm->_graphicsManager._lineNbr = SCREEN_WIDTH;
_vm->_globals.police = _vm->_globals.freeMemory(_vm->_globals.police);
- _vm->_globals.police = _vm->_fileManager.loadFile("STFONT.SPR");
+
+ Common::String filename = "STFONT.SPR";
+ Common::File f;
+ if (!f.exists(filename))
+ filename = "FONTE.SPR"; // Used by the BeOS and OS/2 versions as an alternative
+
+ _vm->_globals.police = _vm->_fileManager.loadFile(filename);
_vm->_globals.police_l = 8;
_vm->_globals.police_h = 8;
_vm->_graphicsManager.loadImage("WINTEXT");