1,554
edits
(→Subclassing Engine: adds note about EVENT_SCREEN_CHANGED) |
(Add console usage) |
||
Line 59: | Line 59: | ||
virtual int init(GameDetector &detector); | virtual int init(GameDetector &detector); | ||
virtual int go(); | virtual int go(); | ||
private: | |||
Console *_console; | |||
}; | |||
// Example console | |||
class Console : public Common::Debugger<Console> { | |||
public: | |||
Console(SagaEngine *vm); | |||
virtual ~Console(void); | |||
}; | }; | ||
Line 162: | Line 172: | ||
_system->endGFXTransaction(); | _system->endGFXTransaction(); | ||
// Create debugger console. It requires GFX to be initialized | |||
_console = new Console(); | |||
// Additional setup. | // Additional setup. | ||
printf("QuuxEngine::init\n"); | printf("QuuxEngine::init\n"); |