mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 16:03:24 +00:00
Fix original load/save screen freezing in Loom [ega]
Sets current drive, instead of drive type. svn-id: r17182
This commit is contained in:
parent
89ce70d724
commit
f258c52bfc
@ -1138,17 +1138,23 @@ void ScummEngine_v5::o5_saveLoadGame() {
|
||||
_opcode = 0x40;
|
||||
else if (a == 2)
|
||||
_opcode = 0x80;
|
||||
} else
|
||||
} else {
|
||||
_opcode = a & 0xE0;
|
||||
}
|
||||
|
||||
switch (_opcode) {
|
||||
case 0x00: // num slots available
|
||||
result = 100;
|
||||
break;
|
||||
case 0x20: // drive
|
||||
// 0 = hard drive
|
||||
// 1 = disk drive
|
||||
result = 0;
|
||||
if (_gameId == GID_INDY3) {
|
||||
// 0 = hard drive
|
||||
// 1 = disk drive
|
||||
result = 0;
|
||||
} else {
|
||||
// set current drive
|
||||
result = 1;
|
||||
}
|
||||
break;
|
||||
case 0x40: // load
|
||||
if (loadState(slot, _saveTemporaryState))
|
||||
@ -1173,7 +1179,10 @@ void ScummEngine_v5::o5_saveLoadGame() {
|
||||
else
|
||||
result = 7; // save file does not exist
|
||||
break;
|
||||
default:
|
||||
error("o5_saveLoadGame: unknown subopcode %d", _opcode);
|
||||
}
|
||||
|
||||
setResult(result);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user