Skip to content

Commit

Permalink
HOPKINS: Simplify version selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Jan 26, 2013
1 parent 33431f6 commit 305c820
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions engines/hopkins/hopkins.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 305c820

Please sign in to comment.