diff options
author | Paul Gilbert | 2016-09-22 20:24:18 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-09-22 20:24:18 -0400 |
commit | eb675ecf2fd77682a09b862c40afea8eb996b1f2 (patch) | |
tree | 8bed69f3140dea7ca33d7fae4455dafcf7d92607 /engines/xeen/resources.cpp | |
parent | 1dbe64b2ffb47871ed0947f1f286bafa314f9bf3 (diff) | |
download | scummvm-rg350-eb675ecf2fd77682a09b862c40afea8eb996b1f2.tar.gz scummvm-rg350-eb675ecf2fd77682a09b862c40afea8eb996b1f2.tar.bz2 scummvm-rg350-eb675ecf2fd77682a09b862c40afea8eb996b1f2.zip |
XEEN: Create WorldOfXeenResources class for their specific strings
Some strings are still in the base Resources, since they're referred
to by core dialogs. These may be able to be refactored in the future
as support is added for the other games
Diffstat (limited to 'engines/xeen/resources.cpp')
-rw-r--r-- | engines/xeen/resources.cpp | 45 |
1 files changed, 12 insertions, 33 deletions
diff --git a/engines/xeen/resources.cpp b/engines/xeen/resources.cpp index e3d720c85a..b2d8c6d495 100644 --- a/engines/xeen/resources.cpp +++ b/engines/xeen/resources.cpp @@ -23,11 +23,23 @@ #include "common/scummsys.h" #include "xeen/resources.h" #include "xeen/files.h" +#include "xeen/xeen.h" +#include "xeen/worldofxeen/worldofxeen_resources.h" namespace Xeen { Resources *g_resources; +Resources *Resources::init(XeenEngine *vm) { + if (vm->getGameID() == GType_Clouds || vm->getGameID() == GType_DarkSide + || vm->getGameID() == GType_WorldOfXeen) + g_resources = new WorldOfXeen::WorldOfXeenResources(); + else + g_resources = new Resources(); + + return g_resources; +} + Resources::Resources() { g_resources = this; _globalSprites.load("global.icn"); @@ -1591,37 +1603,4 @@ const char *const Resources::EVENT_SAMPLES[6] = { "ahh.voc", "whereto.voc", "gulp.voc", "null.voc", "scream.voc", "laff1.voc" }; -const char *const Resources::CLOUDS_INTRO1 = "\xC" "00\xB" "082\x9" "040\x3" - "cKing Burlock\xB" "190\x9" "040Peasants\xB" "082\x9" "247" - "Lord Xeen\xB" "190\x9" "258Xeen's Pet\xB" "179\x9" "150Crodo"; - -const char *const Resources::DARKSIDE_ENDING1 = "\n\x3" "cCongratulations\n" - "\n" - "Your Final Score is:\n" - "\n" - "%010lu\n" - "\x3" "l\n" - "Please send this score to the Ancient's Headquarters " - "where you'll be added to the Hall of Legends!\n" - "\n" - "Ancient's Headquarters\n" - "New World Computing, Inc.\n" - "P.O. Box 4302\n" - "Hollywood, CA 90078"; - -const char *const Resources::DARKSIDE_ENDING2 = "\n" - "Adventurers,\n" - "\n" - "I have saved your game in Castleview.\n" - "\n" - "The World of Xeen still needs you!\n" - "\n" - "Load your game and come visit me in the Great Pyramid " - "for further instructions"; - -const char *const Resources::PHAROAH_ENDING_TEXT1 = "\xC" "d\xB" - "001\x9" "001%s\x3" "c\x9" "000\xB" "180Press a Key!\x3" "l"; -const char *const Resources::PHAROAH_ENDING_TEXT2 = "\xC" "04\xB" - "000\x9" "000%s\x3" "c\x9" "000\xB" "180Press a Key!\x3" "l\xC" "d"; - } // End of namespace Xeen |