Ticket #9076: savedialog_v0_1.patch
File savedialog_v0_1.patch, 1.5 KB (added by , 15 years ago) |
---|
-
engines/scumm/input.cpp
444 444 // On Alt-F5 prepare savegame for the original save/load dialog. 445 445 if (lastKeyHit.keycode == Common::KEYCODE_F5 && lastKeyHit.flags == Common::KBD_ALT) { 446 446 prepareSavegame(); 447 if (_game.id == GID_MANIAC && _game.version == 0) { 448 runScript(2, 0, 0, 0); 449 } 447 450 } 448 451 449 452 if (VAR_KEYPRESS != 0xFF && _mouseAndKeyboardStat) { // Key Input -
engines/scumm/script_v4.cpp
393 393 394 394 void ScummEngine_v4::o4_saveLoadGame() { 395 395 getResultPos(); 396 byte slot; 396 397 byte a = getVarOrDirectByte(PARAM_1); 397 byte slot = a & 0x1F;398 398 byte result = 0; 399 399 400 // Slot numbers in older games start with 0, in newer games with 1 401 if (_game.version <= 2) 402 slot++; 403 404 if ((_game.id == GID_MANIAC) && (_game.version <= 1)) { 405 // Convert older load/save screen 400 if (_game.version <= 1) { 401 // Convert V0/V1 load/save screen (they support only one savegame per disk) 406 402 // 1 Load 407 403 // 2 Save 408 404 slot = 1; … … 411 407 else if ((a == 2) || (_game.platform == Common::kPlatformNES)) 412 408 _opcode = 0x80; 413 409 } else { 410 slot = a & 0x1F; 411 // Slot numbers in older games start with 0, in newer games with 1 412 if (_game.version <= 2) 413 slot++; 414 414 _opcode = a & 0xE0; 415 415 } 416 416