aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/prince.cpp
diff options
context:
space:
mode:
authorKamil Zbróg2013-10-11 01:01:56 +0100
committerKamil Zbróg2013-10-11 01:01:56 +0100
commit1a55957647a10540f5c11935c2ede372e593f713 (patch)
treec29c2016f27f34c6f69eb4053b19dee05025c934 /engines/prince/prince.cpp
parent5b54a546e0de7a3e2e103667320459695a243d9c (diff)
downloadscummvm-rg350-1a55957647a10540f5c11935c2ede372e593f713.tar.gz
scummvm-rg350-1a55957647a10540f5c11935c2ede372e593f713.tar.bz2
scummvm-rg350-1a55957647a10540f5c11935c2ede372e593f713.zip
PRINCE: Detection of german and polish game
Diffstat (limited to 'engines/prince/prince.cpp')
-rw-r--r--engines/prince/prince.cpp70
1 files changed, 70 insertions, 0 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp
new file mode 100644
index 0000000000..e2149e9919
--- /dev/null
+++ b/engines/prince/prince.cpp
@@ -0,0 +1,70 @@
+/* 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 "common/scummsys.h"
+
+#include "common/config-manager.h"
+#include "common/debug-channels.h"
+#include "common/debug.h"
+#include "common/events.h"
+#include "common/file.h"
+#include "common/random.h"
+#include "common/fs.h"
+#include "common/keyboard.h"
+#include "common/substream.h"
+
+#include "graphics/cursorman.h"
+#include "graphics/surface.h"
+#include "graphics/palette.h"
+#include "graphics/pixelformat.h"
+
+#include "engines/util.h"
+#include "engines/advancedDetector.h"
+
+#include "audio/audiostream.h"
+
+#include "prince/prince.h"
+
+namespace Prince {
+
+PrinceEngine::PrinceEngine(OSystem *syst, const PrinceGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc) {
+ _rnd = new Common::RandomSource("prince");
+}
+
+PrinceEngine::~PrinceEngine() {
+ DebugMan.clearAllDebugChannels();
+
+ delete _rnd;
+}
+
+Common::Error PrinceEngine::run() {
+
+ initGraphics(640, 480, true);
+
+ return Common::kNoError;
+}
+
+void PrinceEngine::setFullPalette() {
+ _system->getPaletteManager()->setPalette(_palette, 0, 256);
+}
+
+
+} // End of namespace Prince