diff options
author | Matthew Hoops | 2012-11-13 20:23:11 -0500 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | a243b5cb33b36b6cc0f3e92b76dad5714a87942e (patch) | |
tree | f18460e5eb046075b3cbb5acca418c622e760aa3 /engines/director/director.cpp | |
parent | 0cccd0ddd1d53b7d16e47a5b2d8ca62c87d992f4 (diff) | |
download | scummvm-rg350-a243b5cb33b36b6cc0f3e92b76dad5714a87942e.tar.gz scummvm-rg350-a243b5cb33b36b6cc0f3e92b76dad5714a87942e.tar.bz2 scummvm-rg350-a243b5cb33b36b6cc0f3e92b76dad5714a87942e.zip |
DIRECTOR: Add engine skeleton
Diffstat (limited to 'engines/director/director.cpp')
-rw-r--r-- | engines/director/director.cpp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp new file mode 100644 index 0000000000..840692ae7f --- /dev/null +++ b/engines/director/director.cpp @@ -0,0 +1,49 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#include "audio/mixer.h" + +#include "common/scummsys.h" +#include "common/error.h" +#include "common/system.h" +#include "common/textconsole.h" + +#include "director/director.h" + +namespace Director { + +DirectorEngine::DirectorEngine(OSystem *syst, const DirectorGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc) { + if (!_mixer->isReady()) + error("Sound initialization failed"); + + // Setup mixer + syncSoundSettings(); +} + +DirectorEngine::~DirectorEngine() { +} + +Common::Error DirectorEngine::run() { + return Common::kNoError; +} + +} // End of namespace Director |