diff options
author | Johannes Schickel | 2007-02-07 19:51:19 +0000 |
---|---|---|
committer | Johannes Schickel | 2007-02-07 19:51:19 +0000 |
commit | 6707dcbbb2091d5eccb6dd18bbb287dd6a409e8e (patch) | |
tree | 93604d7dede93ecd0cc85bdb72b1881936758c3f /engines/kyra | |
parent | 63e3dfb1d146bdb79e57973f4330f44d39b40b73 (diff) | |
download | scummvm-rg350-6707dcbbb2091d5eccb6dd18bbb287dd6a409e8e.tar.gz scummvm-rg350-6707dcbbb2091d5eccb6dd18bbb287dd6a409e8e.tar.bz2 scummvm-rg350-6707dcbbb2091d5eccb6dd18bbb287dd6a409e8e.zip |
Fixed credits in FM-Towns version.
svn-id: r25417
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/resource.h | 1 | ||||
-rw-r--r-- | engines/kyra/sequences_v1.cpp | 20 | ||||
-rw-r--r-- | engines/kyra/staticres.cpp | 1 |
3 files changed, 17 insertions, 5 deletions
diff --git a/engines/kyra/resource.h b/engines/kyra/resource.h index 0fb99fd253..3d15792453 100644 --- a/engines/kyra/resource.h +++ b/engines/kyra/resource.h @@ -199,6 +199,7 @@ enum kKyraResources { kConfigStrings, kKyra1TownsSFXTable, + kCreditsStrings, kMaxResIDs }; diff --git a/engines/kyra/sequences_v1.cpp b/engines/kyra/sequences_v1.cpp index 5a6d2bf04d..64a8d94b99 100644 --- a/engines/kyra/sequences_v1.cpp +++ b/engines/kyra/sequences_v1.cpp @@ -1035,10 +1035,20 @@ void KyraEngine::seq_playCredits() { snd_playWanderScoreViaMap(53, 1); uint8 *buffer = 0; - uint32 size; + uint32 size = 0; - buffer = _res->fileData("CREDITS.TXT", &size); - assert(buffer); + if (_flags.platform == Common::kPlatformFMTowns) { + int sizeTmp = 0; + const uint8 *bufferTmp = _staticres->loadRawData(kCreditsStrings, sizeTmp); + buffer = new uint8[sizeTmp]; + assert(buffer); + memcpy(buffer, bufferTmp, sizeTmp); + size = sizeTmp; + _staticres->unloadId(kCreditsStrings); + } else { + buffer = _res->fileData("CREDITS.TXT", &size); + assert(buffer); + } uint8 *nextString = buffer; uint8 *currentString = buffer; @@ -1134,8 +1144,8 @@ void KyraEngine::seq_playCredits() { if (nextLoop > now) _system->delayMillis(nextLoop - now); } - - delete[] buffer; + + delete [] buffer; _screen->fadeToBlack(); _screen->clearCurPage(); diff --git a/engines/kyra/staticres.cpp b/engines/kyra/staticres.cpp index fe7a68d988..4d4e8811f6 100644 --- a/engines/kyra/staticres.cpp +++ b/engines/kyra/staticres.cpp @@ -207,6 +207,7 @@ bool StaticResource::init() { // FM-TOWNS specific { kKyra1TownsSFXTable, kRawData, "SFXTABLE" }, + { kCreditsStrings, kRawData, "CREDITS" }, { 0, 0, 0 } }; |