aboutsummaryrefslogtreecommitdiff
path: root/engines/adl/hires2.cpp
diff options
context:
space:
mode:
authorWalter van Niftrik2016-03-10 12:09:59 +0100
committerWalter van Niftrik2016-06-06 20:35:49 +0200
commite49085b49d0ff0b2962923682db6770ef3c908dd (patch)
tree3ab3f3cf4bd2479e670ebdb155983696c5cb3b9d /engines/adl/hires2.cpp
parentee0c5e4452722fcee3304af26d209114b4c80f75 (diff)
downloadscummvm-rg350-e49085b49d0ff0b2962923682db6770ef3c908dd.tar.gz
scummvm-rg350-e49085b49d0ff0b2962923682db6770ef3c908dd.tar.bz2
scummvm-rg350-e49085b49d0ff0b2962923682db6770ef3c908dd.zip
ADL: Implement hires2 title screen
Diffstat (limited to 'engines/adl/hires2.cpp')
-rw-r--r--engines/adl/hires2.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/adl/hires2.cpp b/engines/adl/hires2.cpp
index 25e0e6f235..f318ad3845 100644
--- a/engines/adl/hires2.cpp
+++ b/engines/adl/hires2.cpp
@@ -32,6 +32,22 @@
namespace Adl {
void HiRes2Engine::runIntro() const {
+ Common::File f;
+
+ if (!f.open(IDS_HR2_DISK_IMAGE))
+ error("Failed to open file '" IDS_HR2_DISK_IMAGE "'");
+
+ f.seek(IDI_HR2_OFS_INTRO_TEXT);
+
+ _display->setMode(DISPLAY_MODE_TEXT);
+
+ Common::String str = readStringAt(f, IDI_HR2_OFS_INTRO_TEXT);
+
+ if (f.eos() || f.err())
+ error("Error reading disk image");
+
+ _display->printString(str);
+ delay(2000);
}
void HiRes2Engine::loadData() {