aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins
diff options
context:
space:
mode:
authorStrangerke2013-01-26 15:35:02 +0100
committerStrangerke2013-01-26 15:35:02 +0100
commit305c820eeff1688d16ad8c02c56eceaa20c54772 (patch)
tree6ff252732923c0dc32bfb9985249d865144aa1fc /engines/hopkins
parent33431f666c7c2d8941548da37a8dd012fd4c1c3c (diff)
downloadscummvm-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.cpp31
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;