Implemented getDebugger()

svn-id: r35967
This commit is contained in:
Filippos Karapetis 2009-01-20 23:40:35 +00:00
parent 299736c9e1
commit 7273d02528
2 changed files with 12 additions and 7 deletions

View File

@ -570,6 +570,10 @@ int SagaEngine::getTalkspeed() {
return (ConfMan.getInt("talkspeed") * 3 + 255 / 2) / 255;
}
GUI::Debugger *SagaEngine::getDebugger() {
return _console;
}
void SagaEngine::syncSoundSettings() {
_subtitlesEnabled = ConfMan.getBool("subtitles");
_readingSpeed = getTalkspeed();

View File

@ -445,15 +445,16 @@ class SagaEngine : public Engine {
public:
// Engine APIs
virtual Common::Error init();
virtual Common::Error go();
virtual bool hasFeature(EngineFeature f) const;
virtual void syncSoundSettings();
virtual void pauseEngineIntern(bool pause);
Common::Error init();
Common::Error go();
bool hasFeature(EngineFeature f) const;
void syncSoundSettings();
void pauseEngineIntern(bool pause);
GUI::Debugger *getDebugger();
public:
SagaEngine(OSystem *syst, const SAGAGameDescription *gameDesc);
virtual ~SagaEngine();
~SagaEngine();
void save(const char *fileName, const char *saveName);
void load(const char *fileName);