mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
GLK: ADVSYS: Fix savegame area setup
This commit is contained in:
parent
919670a565
commit
611bea7d73
@ -97,13 +97,16 @@ bool AdvSys::singleAction() {
|
||||
if (execute(_afterOffset) == ABORT)
|
||||
return false;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Common::Error AdvSys::readSaveData(Common::SeekableReadStream *rs) {
|
||||
if ((int)rs->size() != _saveSize)
|
||||
if (rs->size() != (int)_saveSize)
|
||||
return Common::kReadingFailed;
|
||||
|
||||
rs->read(_saveArea, rs->size());
|
||||
|
@ -28,8 +28,8 @@ namespace Glk {
|
||||
namespace AdvSys {
|
||||
|
||||
void Decrypter::decrypt(byte *data, size_t size) {
|
||||
for (; --size; ++data)
|
||||
*data = ~(*data + 30);
|
||||
for (size_t idx = 0; idx < size; ++idx)
|
||||
*data++ = ~(*data + 30);
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
Loading…
Reference in New Issue
Block a user