aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBenjamin Haisch2008-04-23 17:41:28 +0000
committerBenjamin Haisch2008-04-23 17:41:28 +0000
commit4f108832c3fe47eaea18dd6bc838bcc72b5ac8d0 (patch)
treee542de36779406eebb79889127ff79169577e520 /engines
parenta643a8cc8a1f51e5b628f14be128b1cfa06a2818 (diff)
downloadscummvm-rg350-4f108832c3fe47eaea18dd6bc838bcc72b5ac8d0.tar.gz
scummvm-rg350-4f108832c3fe47eaea18dd6bc838bcc72b5ac8d0.tar.bz2
scummvm-rg350-4f108832c3fe47eaea18dd6bc838bcc72b5ac8d0.zip
Loading from rtzcd.red should now actually work.
svn-id: r31668
Diffstat (limited to 'engines')
-rw-r--r--engines/made/made.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/made/made.cpp b/engines/made/made.cpp
index f87649d7a7..9a82534358 100644
--- a/engines/made/made.cpp
+++ b/engines/made/made.cpp
@@ -28,6 +28,7 @@
#include "common/file.h"
#include "common/savefile.h"
#include "common/config-manager.h"
+#include "common/stream.h"
#include "graphics/cursorman.h"
@@ -43,6 +44,7 @@
#include "made/screen.h"
#include "made/script.h"
#include "made/sound.h"
+#include "made/redreader.h"
namespace Made {
@@ -142,15 +144,13 @@ int MadeEngine::go() {
_dat->open("demo.dat");
_res->open("demo.prj");
} else {
- _dat->open("rtzcd.dat");
+ if (Common::File::exists("rtzcd.dat"))
+ _dat->open("rtzcd.dat");
+ else
+ _dat->openFromRed("rtzcd.red", "rtzcd.dat");
_res->open("rtzcd.prj");
}
- PictureResource *flex1 = _res->getPicture(78);
- Graphics::Surface *surf = flex1->getPicture();
- CursorMan.replaceCursor((const byte *)surf->pixels, surf->w, surf->h, 0, 0, 0);
- CursorMan.showMouse(true);
- _res->freeResource(flex1);
_eventMouseX = _eventMouseY = 0;
_script->runScript(_dat->getMainCodeObjectIndex());