aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwhitertandrek2018-03-15 22:48:11 +0200
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commitd058e5dfe6b146373ce89c5710b6e723de687da5 (patch)
tree60b2f722cce9b68c7865c4c3664f2f9d5d7f3018
parentb3c656c6ed04b14e5e6ab2c938e9df6fe9dfe191 (diff)
downloadscummvm-rg350-d058e5dfe6b146373ce89c5710b6e723de687da5.tar.gz
scummvm-rg350-d058e5dfe6b146373ce89c5710b6e723de687da5.tar.bz2
scummvm-rg350-d058e5dfe6b146373ce89c5710b6e723de687da5.zip
PINK: moved game descriptions to detection_tables.h
-rw-r--r--engines/pink/detection.cpp31
-rw-r--r--engines/pink/detection_tables.h56
2 files changed, 58 insertions, 29 deletions
diff --git a/engines/pink/detection.cpp b/engines/pink/detection.cpp
index 16b289b65b..d3a7a08a21 100644
--- a/engines/pink/detection.cpp
+++ b/engines/pink/detection.cpp
@@ -23,41 +23,14 @@
#include <gui/EventRecorder.h>
#include "pink.h"
+
static const PlainGameDescriptor pinkGames[] = {
{"peril", "The Pink Panther: Passport to Peril"},
{"pokus", "The Pink Panther: Hokus Pokus Pink"},
{0, 0}
};
-namespace Pink {
-
-static const ADGameDescription gameDescriptions[] = {
- {
- "peril",
- 0,{
- {"PPTP.ORB", NULL, NULL, -1},
- {"PPTP.BRO", NULL, NULL, -1},
- AD_LISTEND},
- Common::RU_RUS,
- Common::kPlatformWindows,
- ADGF_UNSTABLE,
- GUIO1(GUIO_NONE)
- },
-
- {
- "peril",
- 0,
- AD_ENTRY1s("hpp.ORB", NULL, -1),
- Common::RU_RUS,
- Common::kPlatformWindows,
- ADGF_UNSTABLE,
- GUIO1(GUIO_NONE)
- },
- AD_TABLE_END_MARKER
-};
-
-} // End of namespace Pink
-
+#include "detection_tables.h"
class PinkMetaEngine : public AdvancedMetaEngine {
public:
diff --git a/engines/pink/detection_tables.h b/engines/pink/detection_tables.h
new file mode 100644
index 0000000000..b14803bb51
--- /dev/null
+++ b/engines/pink/detection_tables.h
@@ -0,0 +1,56 @@
+/* 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.
+ *
+ */
+
+#ifndef PINK_DETECTION_TABLES_H
+#define PINK_DETECTION_TABLES_H
+
+#include <gui/EventRecorder.h>
+
+namespace Pink {
+
+static const ADGameDescription gameDescriptions[] = {
+ {
+ "peril",
+ 0,{
+ {"PPTP.ORB", NULL, NULL, -1},
+ {"PPTP.BRO", NULL, NULL, -1},
+ AD_LISTEND},
+ Common::EN_ANY,
+ Common::kPlatformWindows,
+ ADGF_UNSTABLE,
+ GUIO1(GUIO_NONE)
+ },
+ {
+ "pokus",
+ 0,
+ AD_ENTRY1s("hpp.ORB", NULL, -1),
+ Common::EN_ANY,
+ Common::kPlatformWindows,
+ ADGF_UNSTABLE,
+ GUIO1(GUIO_NONE)
+ },
+ AD_TABLE_END_MARKER
+};
+
+} // End of namespace Pink
+
+#endif