From 305c820eeff1688d16ad8c02c56eceaa20c54772 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sat, 26 Jan 2013 15:35:02 +0100 Subject: HOPKINS: Simplify version selection --- engines/hopkins/hopkins.cpp | 31 +++++++++---------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/engines/hopkins/hopkins.cpp b/engines/hopkins/hopkins.cpp index 59d042ec3e..ed94ad8e2b 100644 --- a/engines/hopkins/hopkins.cpp +++ b/engines/hopkins/hopkins.cpp @@ -99,28 +99,15 @@ Common::Error HopkinsEngine::run() { _fileManager.initCensorship(); initializeSystem(); - if (getPlatform() == Common::kPlatformLinux) { - if (getIsDemo()) - runLinuxDemo(); - else - runFull(); - } else if (getPlatform() == Common::kPlatformWindows) { - if (getIsDemo()) - runWin95Demo(); - else - runFull(); - } else if (getPlatform() == Common::kPlatformBeOS) { - if (getIsDemo()) { - warning("Unhandled version, switching to linux demo"); - runLinuxDemo(); - } else - runFull(); - } else { - if (getIsDemo()) { - warning("Unhandled version, switching to linux demo"); - runLinuxDemo(); - } else - runFull(); + if (!getIsDemo()) + runFull(); + else if (getPlatform() == Common::kPlatformLinux) + runLinuxDemo(); + else if (getPlatform() == Common::kPlatformWindows) + runWin95Demo(); + else { + warning("Unhandled version, switching to linux demo. Please report this version to ScummVM developers"); + runLinuxDemo(); } return Common::kNoError; -- cgit v1.2.3