From be9b11570e941bf6bfe458d569b15dc8681bc6c4 Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Wed, 30 Oct 2013 15:28:36 +0100 Subject: [PATCH] GRIM: Make the savegames compatible with 1.1 again. Bump to 22.9 New Lua's internal functions (int_funcs array in lbuiltin.cpp) must be added to the bottom, and the savegame's minor version must be increased. --- engines/grim/lua/lbuiltin.cpp | 6 +++--- engines/grim/savegame.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/engines/grim/lua/lbuiltin.cpp b/engines/grim/lua/lbuiltin.cpp index afda1195eef..8529dec693b 100644 --- a/engines/grim/lua/lbuiltin.cpp +++ b/engines/grim/lua/lbuiltin.cpp @@ -511,13 +511,13 @@ static struct luaL_reg int_funcs[] = { { "stop_script", stop_script }, { "next_script", next_script }, { "identify_script", identify_script }, - { "pause_script", pause_script }, { "pause_scripts", pause_scripts }, - { "unpause_script", unpause_script }, { "unpause_scripts", unpause_scripts }, { "find_script", find_script }, { "sleep_for", sleep_for }, - { "break_here", break_here } + { "break_here", break_here }, + { "pause_script", pause_script }, + { "unpause_script", unpause_script } }; void luaB_predefine() { diff --git a/engines/grim/savegame.cpp b/engines/grim/savegame.cpp index 7457bce9072..02513604093 100644 --- a/engines/grim/savegame.cpp +++ b/engines/grim/savegame.cpp @@ -35,7 +35,7 @@ namespace Grim { #define SAVEGAME_FOOTERTAG 'ESAV' uint SaveGame::SAVEGAME_MAJOR_VERSION = 22; -uint SaveGame::SAVEGAME_MINOR_VERSION = 8; +uint SaveGame::SAVEGAME_MINOR_VERSION = 9; SaveGame *SaveGame::openForLoading(const Common::String &filename) { Common::InSaveFile *inSaveFile = g_system->getSavefileManager()->openForLoading(filename);