1 /* ScummVM - Graphic Adventure Engine 2 * 3 * ScummVM is the legal property of its developers, whose names 4 * are too numerous to list here. Please refer to the COPYRIGHT 5 * file distributed with this source distribution. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 */ 22 23 #include "base/plugins.h" 24 25 #include "common/str-array.h" 26 #include "common/memstream.h" 27 #include "engines/advancedDetector.h" 28 #include "voyeur/detection.h" 29 #include "voyeur/voyeur.h" 30 31 static const PlainGameDescriptor voyeurGames[] = { 32 {"voyeur", "Voyeur"}, 33 {0, 0} 34 }; 35 36 static const DebugChannelDef debugFlagList[] = { 37 {Voyeur::kDebugScripts, "scripts", "Game scripts"}, 38 DEBUG_CHANNEL_END 39 }; 40 41 #include "voyeur/detection_tables.h" 42 43 class VoyeurMetaEngineDetection : public AdvancedMetaEngineDetection { 44 public: VoyeurMetaEngineDetection()45 VoyeurMetaEngineDetection() : AdvancedMetaEngineDetection(Voyeur::gameDescriptions, sizeof(Voyeur::VoyeurGameDescription), voyeurGames) { 46 _maxScanDepth = 3; 47 } 48 getEngineId() const49 const char *getEngineId() const override { 50 return "voyeur"; 51 } 52 getName() const53 const char *getName() const override { 54 return "Voyeur"; 55 } 56 getOriginalCopyright() const57 const char *getOriginalCopyright() const override { 58 return "Voyeur (C) Philips P.O.V. Entertainment Group"; 59 } 60 getDebugChannels() const61 const DebugChannelDef *getDebugChannels() const override { 62 return debugFlagList; 63 } 64 }; 65 66 REGISTER_PLUGIN_STATIC(VOYEUR_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, VoyeurMetaEngineDetection); 67