From 11b92529b09bcb6210a673c89d77aa21147b43d4 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Mon, 10 Oct 2011 10:14:34 -0400 Subject: PEGASUS: Fix loading continue points --- engines/pegasus/pegasus.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/engines/pegasus/pegasus.cpp b/engines/pegasus/pegasus.cpp index a53f376664..62688cc8f9 100644 --- a/engines/pegasus/pegasus.cpp +++ b/engines/pegasus/pegasus.cpp @@ -354,6 +354,9 @@ bool PegasusEngine::loadFromStream(Common::ReadStream *stream) { _currentItemID = kNoItemID; _currentBiochipID = kNoItemID; + if (!g_interface) + createInterface(); + // Signature uint32 creator = stream->readUint32BE(); if (creator != kPegasusPrimeCreator) { @@ -396,9 +399,6 @@ bool PegasusEngine::loadFromStream(Common::ReadStream *stream) { // Death reason setEnergyDeathReason(stream->readByte()); - // TODO: This is as far as we can go right now (until I implement the mapping biochip and AI rules loading) - return true; - // Items g_allItems.readFromStream(stream); @@ -448,9 +448,6 @@ bool PegasusEngine::loadFromStream(Common::ReadStream *stream) { } bool PegasusEngine::writeToStream(Common::WriteStream *stream, int saveType) { - // Not ready yet! :P - return false; - // Signature stream->writeUint32BE(kPegasusPrimeCreator); -- cgit v1.2.3