aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/savegame.cfsml
diff options
context:
space:
mode:
authorFilippos Karapetis2009-02-18 17:57:57 +0000
committerFilippos Karapetis2009-02-18 17:57:57 +0000
commit7dfb902019684b8f54ab1c4f3196be029b174208 (patch)
treedba5cc0befc091f3174ea60f0a0c9b28830eadd5 /engines/sci/engine/savegame.cfsml
parentec3fd15268090bc5dd133ad441e408cfb82e8533 (diff)
downloadscummvm-rg350-7dfb902019684b8f54ab1c4f3196be029b174208.tar.gz
scummvm-rg350-7dfb902019684b8f54ab1c4f3196be029b174208.tar.bz2
scummvm-rg350-7dfb902019684b8f54ab1c4f3196be029b174208.zip
Updated the savegame.cfsml file to remove unused functions and generated the appropriate .cpp file using the cfsml tool
svn-id: r38493
Diffstat (limited to 'engines/sci/engine/savegame.cfsml')
-rw-r--r--engines/sci/engine/savegame.cfsml23
1 files changed, 12 insertions, 11 deletions
diff --git a/engines/sci/engine/savegame.cfsml b/engines/sci/engine/savegame.cfsml
index 321d79fcb9..213f04414d 100644
--- a/engines/sci/engine/savegame.cfsml
+++ b/engines/sci/engine/savegame.cfsml
@@ -171,11 +171,20 @@ read_song_tp(FILE *fh, song_t **foo, const char *lastval, int *line, int *hiteof
typedef mem_obj_t *mem_obj_ptr;
+// Unused types
+/*
+TYPE long "long" LIKE int;
+TYPE gint16 "gint16" LIKE int;
+
+RECORD synonym_t "synonym_t" {
+ int replaceant;
+ int replacement;
+}
+*/
+
%CFSML
TYPE byte "byte" LIKE int;
-TYPE long "long" LIKE int;
-TYPE gint16 "gint16" LIKE int;
TYPE seg_id_t "seg_id_t" LIKE int;
TYPE sci_version_t "sci_version_t" USING write_sci_version read_sci_version;
TYPE menubar_tp "menubar_t *" USING write_menubar_tp read_menubar_tp;
@@ -234,12 +243,6 @@ RECORD menubar_t "menubar_t" {
menu_t menus[DYNAMIC menus_nr];
}
-RECORD synonym_t "synonym_t" {
- int replaceant;
- int replacement;
-}
-
-
RECORD seg_manager_t "seg_manager_t" {
int_hash_map_tp id_seg_map;
mem_obj_ptr heap[DYNAMIC heap_size];
@@ -724,9 +727,7 @@ gamestate_save(state_t *s, char *dirname) {
/* Calculate the time spent with this game */
s->game_time = time(NULL) - s->game_start_time.tv_sec;
-SCI_MEMTEST;
%CFSMLWRITE state_t s INTO fh;
-SCI_MEMTEST;
fclose(fh);
@@ -1131,7 +1132,7 @@ gamestate_restore(state_t *s, char *dirname) {
retval->resource_dir = s->resource_dir;
retval->work_dir = s->work_dir;
retval->kernel_opt_flags = 0;
- retval->have_mouse_flag = s->have_mouse_flag;
+ retval->have_mouse_flag = 1;
retval->successor = NULL;
retval->pic_priority_table = (int*)gfxop_get_pic_metainfo(retval->gfx_state);