Skip to content

Commit

Permalink
Merge branch 'hopkins' of github.com:dreammaster/scummvm into hopkins
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Oct 27, 2012
2 parents d7277c3 + 2888a38 commit 6d3cee4
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 6 deletions.
4 changes: 4 additions & 0 deletions engines/hopkins/detection.cpp
Expand Up @@ -47,6 +47,10 @@ Common::Language HopkinsEngine::getLanguage() const {
return _gameDescription->desc.language;
}

Common::Platform HopkinsEngine::getPlatform() const {
return _gameDescription->desc.platform;
}

bool HopkinsEngine::getIsDemo() const {
return _gameDescription->desc.flags & ADGF_DEMO;
}
Expand Down
15 changes: 15 additions & 0 deletions engines/hopkins/detection_tables.h
Expand Up @@ -70,6 +70,21 @@ static const HopkinsGameDescription gameDescriptions[] = {
GUIO1(GUIO_NONE)
},
},
{
// Hopkins FBI Win95 Demo, provided by Strangerke
{
"hopkins",
0,
{
{"Hopkins.exe", 0, "0c9ebfe371f4dcf84a49f333f04839a0", 376897},
AD_LISTEND
},
Common::EN_ANY,
Common::kPlatformWindows,
ADGF_DEMO,
GUIO1(GUIO_NONE)
},
},
{
// Hopkins FBI Win95, provided by Strangerke
{
Expand Down
2 changes: 1 addition & 1 deletion engines/hopkins/dialogs.cpp
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the _globals.FRee Software
* Foundation, Inc., 51 _globals.FRanklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/

Expand Down
11 changes: 7 additions & 4 deletions engines/hopkins/hopkins.cpp
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the _globals.FRee Software
* Foundation, Inc., 51 _globals.FRanklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/

Expand Down Expand Up @@ -514,8 +514,11 @@ void HopkinsEngine::INIT_SYSTEM() {
// Set graphics mode
_graphicsManager.SET_MODE(640, 480);

_eventsManager.mouse_linux = true;

if (getPlatform() == Common::kPlatformLinux)
_eventsManager.mouse_linux = true;
else
_eventsManager.mouse_linux = false;

switch (_globals.FR) {
case 0:
if (!_eventsManager.mouse_linux)
Expand All @@ -524,7 +527,7 @@ void HopkinsEngine::INIT_SYSTEM() {
_fileManager.CONSTRUIT_SYSTEM("LSOUAN.SPR");
break;
case 1:
_fileManager.CONSTRUIT_SYSTEM("LSOU_globals.FR.SPR");
_fileManager.CONSTRUIT_SYSTEM("LSOUFR.SPR");
break;
case 2:
_fileManager.CONSTRUIT_SYSTEM("SOUES.SPR");
Expand Down
1 change: 1 addition & 0 deletions engines/hopkins/hopkins.h
Expand Up @@ -119,6 +119,7 @@ class HopkinsEngine : public Engine {

uint32 getFeatures() const;
Common::Language getLanguage() const;
Common::Platform HopkinsEngine::getPlatform() const;
uint16 getVersion() const;
bool getIsDemo() const;
bool shouldQuit() const;
Expand Down
2 changes: 1 addition & 1 deletion engines/hopkins/menu.cpp
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the _globals.FRee Software
* Foundation, Inc., 51 _globals.FRanklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/

Expand Down

0 comments on commit 6d3cee4

Please sign in to comment.