diff options
author | D G Turner | 2012-07-17 02:21:40 +0100 |
---|---|---|
committer | D G Turner | 2012-07-17 02:21:40 +0100 |
commit | 91b13b30b31387312f5d73661e90843a1327942e (patch) | |
tree | 6264b104f3e6ebe33d12a7b9a3127010cf78603f | |
parent | 5563abae6dead0cfe4a3c8796e2f07e63b1022b1 (diff) | |
download | scummvm-rg350-91b13b30b31387312f5d73661e90843a1327942e.tar.gz scummvm-rg350-91b13b30b31387312f5d73661e90843a1327942e.tar.bz2 scummvm-rg350-91b13b30b31387312f5d73661e90843a1327942e.zip |
TEENAGENT: Symbol migration associated with displayCredits().
-rw-r--r-- | engines/teenagent/callbacks.cpp | 12 | ||||
-rw-r--r-- | engines/teenagent/resources.h | 16 | ||||
-rw-r--r-- | engines/teenagent/teenagent.cpp | 2 |
3 files changed, 23 insertions, 7 deletions
diff --git a/engines/teenagent/callbacks.cpp b/engines/teenagent/callbacks.cpp index d6e9c13fab..4fee6d4a9c 100644 --- a/engines/teenagent/callbacks.cpp +++ b/engines/teenagent/callbacks.cpp @@ -95,7 +95,7 @@ bool TeenAgentEngine::processCallback(uint16 addr) { setOns(1, 109); setLan(2, 1); dialog->show(192, scene, 914, 915, 0xe7, 0xd7, 2, 1); - displayCredits(0xe3c2); + displayCredits(dsAddr_introCredits1); loadScene(42, 139, 156, 3); playSound(15, 20); @@ -108,7 +108,7 @@ bool TeenAgentEngine::processCallback(uint16 addr) { playAnimation(918, 0, true); playAnimation(917, 1, true); waitAnimation(); - displayCredits(0xe3e6); + displayCredits(dsAddr_introCredits2); loadScene(40, 139, 156, 3); playMusic(3); @@ -118,7 +118,7 @@ bool TeenAgentEngine::processCallback(uint16 addr) { playAnimation(926, 1, true); waitAnimation(); dialog->show(194, scene, 927, 920, 0xeb, 0xe7, 2, 1); - displayCredits(0xe3ff); + displayCredits(dsAddr_introCredits3); loadScene(39, 139, 156, 3); playMusic(11); @@ -143,7 +143,7 @@ bool TeenAgentEngine::processCallback(uint16 addr) { playSound(24, 11); playActorAnimation(931); - displayCredits(0xe42f); + displayCredits(dsAddr_introCredits4); playMusic(3); loadScene(40, 50, 186, 1); @@ -591,7 +591,7 @@ bool TeenAgentEngine::processCallback(uint16 addr) { dialog->show(202, scene, 0, 920, 0xd1, 0xe7, 0, 1); inventory->clear(); inventory->add(0x1d); - displayCredits(0xe45c); + displayCredits(dsAddr_credits5); loadScene(1, 198, 186); hideActor(); playActorAnimation(956); @@ -3867,7 +3867,7 @@ bool TeenAgentEngine::processCallback(uint16 addr) { playAnimation(954, 0); dialog->showMono(211, scene, 955, 0xe3, 1); playMusic(2); - displayCredits(0xe47c, 4500); // 3 minutes (infinite until key pressed in original) + displayCredits(dsAddr_finalCredits6, 4500); // 3 minutes (infinite until key pressed in original) scene->push(SceneEvent(SceneEvent::kQuit)); break; diff --git a/engines/teenagent/resources.h b/engines/teenagent/resources.h index 3beddfd662..2be3de265a 100644 --- a/engines/teenagent/resources.h +++ b/engines/teenagent/resources.h @@ -67,6 +67,22 @@ const uint16 dsAddr_currentScene = 0xb4f3; // 1 byte // Current Music Id Playing : 0xdb90 const uint16 dsAddr_currentMusic = 0xdb90; // 1 byte +// Intro Credits #1 : 0xe3c2 to 0xe3e5 (Read Only) +const uint16 dsAddr_introCredits1 = 0xe3c2; // "backgrounds ..." +// Intro Credits #2 : 0xe3e6 to 0xe3fe (Read Only) +const uint16 dsAddr_introCredits2 = 0xe3e6; // "music ..." +// Intro Credits #3 : 0xe3ff to 0xe42e (Read Only) +const uint16 dsAddr_introCredits3 = 0xe3ff; // "animation..." +// Intro Credits #4 : 0xe42f to 0xe45b (Read Only) +const uint16 dsAddr_introCredits4 = 0xe42f; // "programming..." +// Credits #5 : 0xe45c to 0xe47b (Read Only) +const uint16 dsAddr_credits5 = 0xe45c; // "after the tiring journey..." +// Final Credits #6 : 0xe47c to 0xe487 (Read Only) +const uint16 dsAddr_finalCredits6 = 0xe47c; // "THE END..." +// Final Credits #7 : 0xe488 to 0xe782 (Read Only) +const uint16 dsAddr_finalCredits7 = 0xe488; // "programming..." +// 0xe783 to 0xe78f: 13 null bytes at end of dseg data - segment alignment padding? + class Resources { public: void deinit(); diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp index fe9baacebb..74f0be4adc 100644 --- a/engines/teenagent/teenagent.cpp +++ b/engines/teenagent/teenagent.cpp @@ -805,7 +805,7 @@ void TeenAgentEngine::displayCredits(uint16 addr, uint16 timer) { void TeenAgentEngine::displayCredits() { SceneEvent event(SceneEvent::kCredits); - event.message = parseMessage(0xe488); + event.message = parseMessage(dsAddr_finalCredits7); event.dst.y = 200; int lines = 1; |