diff options
author | Paul Gilbert | 2013-05-18 13:13:48 +1000 |
---|---|---|
committer | Paul Gilbert | 2013-05-18 13:13:48 +1000 |
commit | b72298fa6f7da9eda854b78a1c69c8365ffdf30c (patch) | |
tree | 40454aae2035d02b734d6ddf7903689026d15e07 /engines | |
parent | db519373c111d8eced7d7fb4148d4655204813bc (diff) | |
download | scummvm-rg350-b72298fa6f7da9eda854b78a1c69c8365ffdf30c.tar.gz scummvm-rg350-b72298fa6f7da9eda854b78a1c69c8365ffdf30c.tar.bz2 scummvm-rg350-b72298fa6f7da9eda854b78a1c69c8365ffdf30c.zip |
VOYEUR: Added proper detection entry
Diffstat (limited to 'engines')
-rw-r--r-- | engines/voyeur/detection_tables.h | 4 | ||||
-rw-r--r-- | engines/voyeur/events.cpp | 31 | ||||
-rw-r--r-- | engines/voyeur/events.h | 45 | ||||
-rw-r--r-- | engines/voyeur/voyeur.cpp | 9 | ||||
-rw-r--r-- | engines/voyeur/voyeur.h | 3 |
5 files changed, 89 insertions, 3 deletions
diff --git a/engines/voyeur/detection_tables.h b/engines/voyeur/detection_tables.h index 8f85b9273a..789eb4c22b 100644 --- a/engines/voyeur/detection_tables.h +++ b/engines/voyeur/detection_tables.h @@ -24,12 +24,12 @@ namespace Voyeur { static const VoyeurGameDescription gameDescriptions[] = { { - // Voyeur + // Voyeur DOS English { "voyeur", 0, { - {"Voyeur.exe", 0, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", 292864}, + {"a1100100.rl2", 0, "b44630677618d034970ca0a13c1c1237", 336361}, AD_LISTEND }, Common::EN_ANY, diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp new file mode 100644 index 0000000000..f84172f559 --- /dev/null +++ b/engines/voyeur/events.cpp @@ -0,0 +1,31 @@ +/* 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 "voyeur/events.h" + +namespace Voyeur { + +void EventManager::resetMouse() { + +} + +} // End of namespace Voyeur diff --git a/engines/voyeur/events.h b/engines/voyeur/events.h new file mode 100644 index 0000000000..5715591c52 --- /dev/null +++ b/engines/voyeur/events.h @@ -0,0 +1,45 @@ +/* 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 VOYEUR_EVENTS_H +#define VOYEUR_EVENTS_H + +#include "common/scummsys.h" +#include "common/events.h" + +namespace Voyeur { + +class VoyeurEngine; + +class EventManager { +private: + VoyeurEngine *_vm; +public: + EventManager() {} + void setVm(VoyeurEngine *vm) { _vm = vm; } + + void resetMouse(); +}; + +} // End of namespace Voyeur + +#endif /* VOYEUR_VOYEUR_H */ diff --git a/engines/voyeur/voyeur.cpp b/engines/voyeur/voyeur.cpp index 43e7f51540..580bacbd6f 100644 --- a/engines/voyeur/voyeur.cpp +++ b/engines/voyeur/voyeur.cpp @@ -71,7 +71,7 @@ Common::Error VoyeurEngine::saveGameState(int slot, const Common::String &desc) } Common::Error VoyeurEngine::run() { - + ESP_Init(); return Common::kNoError; } @@ -80,4 +80,11 @@ int VoyeurEngine::getRandomNumber(int maxNumber) { return _randomSource.getRandomNumber(maxNumber); } +void VoyeurEngine::ESP_Init() { + _eventManager.setVm(this); + + _eventManager.resetMouse(); + +} + } // End of namespace Voyeur diff --git a/engines/voyeur/voyeur.h b/engines/voyeur/voyeur.h index fe82c9116c..627f7d8108 100644 --- a/engines/voyeur/voyeur.h +++ b/engines/voyeur/voyeur.h @@ -23,6 +23,7 @@ #ifndef VOYEUR_VOYEUR_H #define VOYEUR_VOYEUR_H +#include "voyeur/events.h" #include "common/scummsys.h" #include "common/system.h" #include "common/error.h" @@ -58,7 +59,9 @@ class VoyeurEngine : public Engine { private: const VoyeurGameDescription *_gameDescription; Common::RandomSource _randomSource; + EventManager _eventManager; + void ESP_Init(); protected: // Engine APIs virtual Common::Error run(); |