From 90c6c0580ec4071d22a50e4c0276ac98e69af38a Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Thu, 9 Feb 2017 19:11:58 -0600 Subject: SCI: Convert Object to use Common::Array for SCI3 In SCI3, index-to-selector tables no longer exist in compiled object data (instead, the SCI3 VM uses selectors directly and object data contains a bit map of valid selectors). In ScummVM, the table is generated by Object::initSelectorsSci3 for compatibility with the design of the ScummVM SCI VM. For consistency, _baseVars is converted to use a standard container, which works for all SCI versions. The table for SCI3 property offsets is also changed to use a standard container instead of manually managing the memory with malloc/free. --- engines/sci/engine/savegame.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/sci/engine/savegame.h') diff --git a/engines/sci/engine/savegame.h b/engines/sci/engine/savegame.h index b6a673b1c0..53377f0b4d 100644 --- a/engines/sci/engine/savegame.h +++ b/engines/sci/engine/savegame.h @@ -37,6 +37,7 @@ struct EngineState; * * Version - new/changed feature * ============================= + * 42 - initial SCI3 support * 41 - palette support for newer SCI2.1 games; stable SCI2/2.1 save games * 40 - always store palvary variables * 39 - Accurate SCI32 arrays/strings, score metadata, avatar metadata @@ -66,7 +67,7 @@ struct EngineState; */ enum { - CURRENT_SAVEGAME_VERSION = 41, + CURRENT_SAVEGAME_VERSION = 42, MINIMUM_SAVEGAME_VERSION = 14 #ifdef ENABLE_SCI32 , -- cgit v1.2.3