aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/resources.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen/resources.cpp')
-rw-r--r--engines/xeen/resources.cpp45
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