aboutsummaryrefslogtreecommitdiff
path: root/engines/cryo
diff options
context:
space:
mode:
authorFilippos Karapetis2017-02-10 02:15:29 +0200
committerFilippos Karapetis2017-02-10 04:33:34 +0200
commitd895d230878e09a56d564a984fb66acf2c6bb7f8 (patch)
tree38dcc74484b54ed7a9a5b5ea69cf8385e2e72356 /engines/cryo
parent8eae295172c7c52e383f0367fa5067d69b722991 (diff)
downloadscummvm-rg350-d895d230878e09a56d564a984fb66acf2c6bb7f8.tar.gz
scummvm-rg350-d895d230878e09a56d564a984fb66acf2c6bb7f8.tar.bz2
scummvm-rg350-d895d230878e09a56d564a984fb66acf2c6bb7f8.zip
CRYO: Remove leftover example engine code
Diffstat (limited to 'engines/cryo')
-rw-r--r--engines/cryo/cryo.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/engines/cryo/cryo.cpp b/engines/cryo/cryo.cpp
index e517c8b276..3574105053 100644
--- a/engines/cryo/cryo.cpp
+++ b/engines/cryo/cryo.cpp
@@ -41,22 +41,6 @@ namespace Cryo {
CryoEngine *g_ed = nullptr;
CryoEngine::CryoEngine(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc) {
- // Put your engine in a sane state, but do nothing big yet;
- // in particular, do not load data from files; rather, if you
- // need to do such things, do them from run().
-
- // Do not initialize graphics here
- // Do not initialize audio devices here
-
- // However this is the place to specify all default directories
-// const Common::FSNode gameDataDir(ConfMan.get("path"));
-// SearchMan.addSubDirectoryMatching(gameDataDir, "sound");
-
- // Here is the right place to set up the engine specific debug channels
- DebugMan.addDebugChannel(kCryoDebugExample, "example", "this is just an example for a engine specific debug channel");
- DebugMan.addDebugChannel(kCryoDebugExample2, "example2", "also an example");
-
- // Don't forget to register your random source
_rnd = new Common::RandomSource("cryo");
_debugger = nullptr;
@@ -71,16 +55,12 @@ CryoEngine::CryoEngine(OSystem *syst, const ADGameDescription *gameDesc) : Engin
}
CryoEngine::~CryoEngine() {
- debug("CryoEngine::~CryoEngine");
-
- // Dispose your resources here
delete _rnd;
delete _game;
delete _video;
delete _screenView;
delete _debugger;
- // Remove all of our debug levels here
DebugMan.clearAllDebugChannels();
}
@@ -97,18 +77,6 @@ Common::Error CryoEngine::run() {
initGraphics(320, 200, false);
_screen.create(320, 200, Graphics::PixelFormat::createFormatCLUT8());
- // Additional setup.
- debug("CryoEngine::init");
-
- // Your main even loop should be (invoked from) here.
- debug("CryoEngine::go: Hello, World!");
-
- // This test will show up if -d1 and --debugflags=example are specified on the commandline
- debugC(1, kCryoDebugExample, "Example debug call");
-
- // This test will show up if --debugflags=example or --debugflags=example2 or both of them and -d3 are specified on the commandline
- debugC(3, kCryoDebugExample | kCryoDebugExample2, "Example debug call two");
-
_game->run();
return Common::kNoError;