diff options
author | Strangerke | 2013-01-26 15:35:02 +0100 |
---|---|---|
committer | Strangerke | 2013-01-26 15:35:02 +0100 |
commit | 305c820eeff1688d16ad8c02c56eceaa20c54772 (patch) | |
tree | 6ff252732923c0dc32bfb9985249d865144aa1fc /engines/hopkins | |
parent | 33431f666c7c2d8941548da37a8dd012fd4c1c3c (diff) | |
download | scummvm-rg350-305c820eeff1688d16ad8c02c56eceaa20c54772.tar.gz scummvm-rg350-305c820eeff1688d16ad8c02c56eceaa20c54772.tar.bz2 scummvm-rg350-305c820eeff1688d16ad8c02c56eceaa20c54772.zip |
HOPKINS: Simplify version selection
Diffstat (limited to 'engines/hopkins')
-rw-r--r-- | engines/hopkins/hopkins.cpp | 31 |
1 files 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; |