Open main menu

Difference between revisions of "HOWTO-Engines"

3 bytes removed ,  12:37, 20 October 2020
Fix compiler errors
m (Minor changes to the Quux area descriptions)
(Fix compiler errors)
Line 176: Line 176:
#include "common/debug-channels.h"
#include "common/debug-channels.h"
#include "common/error.h"
#include "common/error.h"
#include "gui/EventRecorder.h"
#include "common/events.h"
#include "common/file.h"
#include "common/file.h"
#include "common/fs.h"
#include "common/fs.h"
#include "common/system.h"


#include "engines/util.h"
#include "engines/util.h"
Line 187: Line 188:


QuuxEngine::QuuxEngine(OSystem *syst)
QuuxEngine::QuuxEngine(OSystem *syst)
: Engine(syst), _console(nullptr) {
: Engine(syst) {
// Put your engine in a sane state, but do nothing big yet;
// Put your engine in a sane state, but do nothing big yet;
// in particular, do not load data from files; rather, if you
// in particular, do not load data from files; rather, if you
Line 221: Line 222:
Common::Error QuuxEngine::run() {
Common::Error QuuxEngine::run() {
// Initialize graphics using following:
// Initialize graphics using following:
initGraphics(320, 200, false);
initGraphics(320, 200);


// You could use backend transactions directly as an alternative,
// You could use backend transactions directly as an alternative,
84

edits