aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/cruise.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cruise/cruise.cpp')
-rw-r--r--engines/cruise/cruise.cpp27
1 files changed, 22 insertions, 5 deletions
diff --git a/engines/cruise/cruise.cpp b/engines/cruise/cruise.cpp
index 53dc5bd031..187ec2bda1 100644
--- a/engines/cruise/cruise.cpp
+++ b/engines/cruise/cruise.cpp
@@ -35,6 +35,8 @@
#include "sound/mixer.h"
#include "cruise/cruise.h"
+#include "cruise/font.h"
+#include "cruise/gfxModule.h"
namespace Cruise {
@@ -65,10 +67,8 @@ CruiseEngine::CruiseEngine(OSystem * syst, const CRUISEGameDescription *gameDesc
}
CruiseEngine::~CruiseEngine() {
-#ifdef PALMOS_MODE
- delete _currentVolumeFile;
-#endif
delete _debugger;
+ freeSystem();
}
Common::Error CruiseEngine::init() {
@@ -93,7 +93,6 @@ Common::Error CruiseEngine::go() {
}
void CruiseEngine::initialize() {
-
PCFadeFlag = 0;
workBuffer = (uint8 *) mallocAndZero(8192);
@@ -109,7 +108,6 @@ void CruiseEngine::initialize() {
// another bit of video init
readVolCnf();
-
}
bool CruiseEngine::loadLanguageStrings() {
@@ -139,4 +137,23 @@ bool CruiseEngine::loadLanguageStrings() {
return true;
}
+void CruiseEngine::pauseEngineIntern(bool pause) {
+ Engine::pauseEngineIntern(pause);
+
+ if (pause) {
+ // Draw the 'Paused' message
+ drawSolidBox(64, 100, 256, 117, 0);
+ drawString(10, 100, langString(ID_PAUSED), gfxModuleData.pPage00, itemColor, 300);
+ gfxModuleData_flipScreen();
+
+ _savedCursor = currentCursor;
+ changeCursor(CURSOR_NOMOUSE);
+ } else {
+ processAnimation();
+ flipScreen();
+ changeCursor(_savedCursor);
+ }
+}
+
+
} // End of namespace Cruise