diff options
Diffstat (limited to 'engines/adl/adl.cpp')
-rw-r--r-- | engines/adl/adl.cpp | 48 |
1 files changed, 3 insertions, 45 deletions
diff --git a/engines/adl/adl.cpp b/engines/adl/adl.cpp index b96ecc8b97..9925e04286 100644 --- a/engines/adl/adl.cpp +++ b/engines/adl/adl.cpp @@ -20,77 +20,35 @@ * */ - #include "common/scummsys.h" - +#include "common/scummsys.h" #include "common/config-manager.h" #include "common/debug.h" -#include "common/debug-channels.h" #include "common/error.h" #include "common/file.h" -#include "common/fs.h" #include "common/system.h" #include "common/events.h" #include "common/stream.h" -#include "graphics/palette.h" #include "engines/util.h" +#include "graphics/palette.h" + #include "adl/adl.h" #include "adl/display.h" #include "adl/parser.h" namespace Adl { -Common::String asciiToApple(Common::String str) { - Common::String ret(str); - Common::String::iterator it; - - for (it = ret.begin(); it != ret.end(); ++it) - *it = *it | 0x80; - - return ret; -} - -Common::String appleToAscii(Common::String str) { - Common::String ret(str); - Common::String::iterator it; - - for (it = ret.begin(); it != ret.end(); ++it) - *it = *it & 0x7f; - - return ret; -} - AdlEngine::AdlEngine(OSystem *syst, const AdlGameDescription *gd) : Engine(syst), _gameDescription(gd), _console(nullptr), _display(nullptr) { - // 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"); - - // Don't forget to register your random source - _rnd = new Common::RandomSource("adl"); - - debug("AdlEngine::AdlEngine"); } AdlEngine::~AdlEngine() { - debug("AdlEngine::~AdlEngine"); - - delete _rnd; delete _console; delete _display; - - DebugMan.clearAllDebugChannels(); } Common::Error AdlEngine::run() { |