diff options
author | Walter van Niftrik | 2016-03-10 12:09:59 +0100 |
---|---|---|
committer | Walter van Niftrik | 2016-06-06 20:35:49 +0200 |
commit | e49085b49d0ff0b2962923682db6770ef3c908dd (patch) | |
tree | 3ab3f3cf4bd2479e670ebdb155983696c5cb3b9d /engines/adl/hires2.cpp | |
parent | ee0c5e4452722fcee3304af26d209114b4c80f75 (diff) | |
download | scummvm-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.cpp | 16 |
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() { |