mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 02:44:56 +00:00
Switch to case
svn-id: r14712
This commit is contained in:
parent
d8aa922695
commit
d35660a6cb
@ -654,8 +654,6 @@ protected:
|
||||
virtual void executeOpcode(byte i);
|
||||
virtual const char *getOpcodeDesc(byte i);
|
||||
|
||||
byte stringLen(byte *);
|
||||
|
||||
/* Version 7 script opcodes */
|
||||
void o7_getString();
|
||||
void o7_objectX();
|
||||
|
@ -3255,17 +3255,20 @@ Engine *Engine_SCUMM_create(GameDetector *detector, OSystem *syst) {
|
||||
engine = new ScummEngine_v5(detector, syst, game);
|
||||
break;
|
||||
case 6:
|
||||
if (game.heversion >= 60) {
|
||||
// TODO: probably use another variable with version number
|
||||
switch (game.heversion) {
|
||||
#ifndef __PALM_OS__
|
||||
if (game.heversion >= 72)
|
||||
engine = new ScummEngine_v72he(detector, syst, game);
|
||||
else if (game.heversion >= 70)
|
||||
engine = new ScummEngine_v7he(detector, syst, game);
|
||||
else
|
||||
case 72:
|
||||
engine = new ScummEngine_v72he(detector, syst, game);
|
||||
break;
|
||||
case 71:
|
||||
case 70:
|
||||
engine = new ScummEngine_v7he(detector, syst, game);
|
||||
break;
|
||||
#endif
|
||||
engine = new ScummEngine_v6he(detector, syst, game);
|
||||
} else {
|
||||
case 60:
|
||||
engine = new ScummEngine_v6he(detector, syst, game);
|
||||
break;
|
||||
default:
|
||||
engine = new ScummEngine_v6(detector, syst, game);
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user