8
edits
(sync the quux engine with the current code) |
|||
Line 109: | Line 109: | ||
#define QUUX_H | #define QUUX_H | ||
#include "common/random.h" | |||
#include "engines/engine.h" | #include "engines/engine.h" | ||
#include "gui/debugger.h" | #include "gui/debugger.h" | ||
Line 156: | Line 157: | ||
#include "common/config-manager.h" | #include "common/config-manager.h" | ||
#include "common/debug.h" | #include "common/debug.h" | ||
#include "common/debug-channels.h" | |||
#include "common/EventRecorder.h" | #include "common/EventRecorder.h" | ||
#include "common/file.h" | #include "common/file.h" | ||
#include "common/fs.h" | #include "common/fs.h" | ||
#include "engines/util.h" | |||
#include "quux/quux.h" | #include "quux/quux.h" | ||
Line 173: | Line 177: | ||
// However this is the place to specify all default directories | // However this is the place to specify all default directories | ||
SearchMan.addSubDirectoryMatching( | const Common::FSNode gameDataDir(ConfMan.get("path")); | ||
SearchMan.addSubDirectoryMatching(gameDataDir, "sound"); | |||
// Here is the right place to set up the engine specific debug levels | // Here is the right place to set up the engine specific debug levels | ||
DebugMan.addDebugChannel(kQuuxDebugExample, "example", "this is just an example for a engine specific debug level"); | |||
DebugMan.addDebugChannel(kQuuxDebugExample2, "example2", "also an example"); | |||
// Don't forget to register your random source | // Don't forget to register your random source | ||
Line 190: | Line 195: | ||
// Remove all of our debug levels here | // Remove all of our debug levels here | ||
DebugMan.clearAllDebugChannels(); | |||
} | } | ||
Line 217: | Line 222: | ||
// Additional setup. | // Additional setup. | ||
printf("QuuxEngine::init\n"); | printf("QuuxEngine::init\n"); | ||
// Your main even loop should be (invoked from) here. | // Your main even loop should be (invoked from) here. | ||
printf("QuuxEngine::go: Hello, World!\n"); | printf("QuuxEngine::go: Hello, World!\n"); |
edits