[Scummvm-cvs-logs] SF.net SVN: scummvm:[34933] scummvm/trunk/engines/made
john_doe at users.sourceforge.net
john_doe at users.sourceforge.net
Fri Nov 7 22:59:33 CET 2008
Revision: 34933
http://scummvm.svn.sourceforge.net/scummvm/?rev=34933&view=rev
Author: john_doe
Date: 2008-11-07 21:59:25 +0000 (Fri, 07 Nov 2008)
Log Message:
-----------
Implemented RTL support
Modified Paths:
--------------
scummvm/trunk/engines/made/detection.cpp
scummvm/trunk/engines/made/made.cpp
scummvm/trunk/engines/made/made.h
scummvm/trunk/engines/made/pmvplayer.cpp
scummvm/trunk/engines/made/script.cpp
Modified: scummvm/trunk/engines/made/detection.cpp
===================================================================
--- scummvm/trunk/engines/made/detection.cpp 2008-11-07 19:43:01 UTC (rev 34932)
+++ scummvm/trunk/engines/made/detection.cpp 2008-11-07 21:59:25 UTC (rev 34933)
@@ -348,12 +348,23 @@
return "MADE Engine (C) Activision";
}
+ virtual bool hasFeature(MetaEngineFeature f) const;
virtual bool createInstance(OSystem *syst, Engine **engine, const Common::ADGameDescription *desc) const;
const Common::ADGameDescription *fallbackDetect(const Common::FSList &fslist) const;
};
+bool MadeMetaEngine::hasFeature(MetaEngineFeature f) const {
+ return
+ false;
+}
+
+bool Made::MadeEngine::hasFeature(EngineFeature f) const {
+ return
+ (f == kSupportsRTL);
+}
+
bool MadeMetaEngine::createInstance(OSystem *syst, Engine **engine, const Common::ADGameDescription *desc) const {
const Made::MadeGameDescription *gd = (const Made::MadeGameDescription *)desc;
if (gd) {
Modified: scummvm/trunk/engines/made/made.cpp
===================================================================
--- scummvm/trunk/engines/made/made.cpp 2008-11-07 19:43:01 UTC (rev 34932)
+++ scummvm/trunk/engines/made/made.cpp 2008-11-07 21:59:25 UTC (rev 34933)
@@ -116,8 +116,6 @@
debug(1, "Music disabled.");
}
- _quit = false;
-
// Set default sound frequency
// Return to Zork sets it itself via a script funtion
if (getGameID() == GID_MANHOLE || getGameID() == GID_RODNEY) {
@@ -230,10 +228,6 @@
_eventNum = 5;
break;
- case Common::EVENT_QUIT:
- _quit = true;
- break;
-
default:
break;
Modified: scummvm/trunk/engines/made/made.h
===================================================================
--- scummvm/trunk/engines/made/made.h 2008-11-07 19:43:01 UTC (rev 34932)
+++ scummvm/trunk/engines/made/made.h 2008-11-07 21:59:25 UTC (rev 34933)
@@ -85,6 +85,9 @@
public:
MadeEngine(OSystem *syst, const MadeGameDescription *gameDesc);
virtual ~MadeEngine();
+
+ virtual bool hasFeature(EngineFeature f) const;
+
int getGameId() {
return _gameId;
}
@@ -105,8 +108,6 @@
ScriptInterpreter *_script;
MusicPlayer *_music;
- bool _quit;
-
uint16 _eventNum;
int _eventMouseX, _eventMouseY;
uint16 _eventKey;
Modified: scummvm/trunk/engines/made/pmvplayer.cpp
===================================================================
--- scummvm/trunk/engines/made/pmvplayer.cpp 2008-11-07 19:43:01 UTC (rev 34932)
+++ scummvm/trunk/engines/made/pmvplayer.cpp 2008-11-07 21:59:25 UTC (rev 34933)
@@ -95,7 +95,7 @@
// get it to work well?
_audioStream = Audio::makeAppendableAudioStream(soundFreq, Audio::Mixer::FLAG_UNSIGNED);
- while (!_abort && !_fd->eos()) {
+ while (!_vm->shouldQuit() && !_abort && !_fd->eos()) {
int32 frameTime = _vm->_system->getMillis();
@@ -214,10 +214,6 @@
if (event.kbd.keycode == Common::KEYCODE_ESCAPE)
_abort = true;
break;
- case Common::EVENT_QUIT:
- _vm->_quit = true;
- _abort = true;
- break;
default:
break;
}
Modified: scummvm/trunk/engines/made/script.cpp
===================================================================
--- scummvm/trunk/engines/made/script.cpp 2008-11-07 19:43:01 UTC (rev 34932)
+++ scummvm/trunk/engines/made/script.cpp 2008-11-07 21:59:25 UTC (rev 34933)
@@ -191,7 +191,6 @@
uint32 opcodeSleepCounter = 0;
- _vm->_quit = false;
_runningScriptObjectIndex = scriptObjectIndex;
_localStackPos = _stack.getStackPos();
@@ -199,7 +198,7 @@
_codeBase = _vm->_dat->getObject(_runningScriptObjectIndex)->getData();
_codeIp = _codeBase;
- while (!_vm->_quit) {
+ while (!_vm->shouldQuit()) {
_vm->handleEvents();
@@ -427,14 +426,14 @@
}
void ScriptInterpreter::cmd_exit() {
- _vm->_quit = true;
+ _vm->quitGame();
}
void ScriptInterpreter::cmd_return() {
// Check if returning from main function
if (_localStackPos == kScriptStackSize) {
- _vm->_quit = true;
+ _vm->quitGame();
return;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list