From 5e2ee01b39392eecd966624e1d0efc75ee41bc10 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 6 Mar 2009 07:25:06 +0000 Subject: SCI: Renamed lots of classes related to song iterators; allocate song iterators via new/delete instead of malloc/free svn-id: r39148 --- engines/sci/engine/savegame.cfsml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/sci/engine/savegame.cfsml') diff --git a/engines/sci/engine/savegame.cfsml b/engines/sci/engine/savegame.cfsml index 8e29a4b98f..bd62cd9924 100644 --- a/engines/sci/engine/savegame.cfsml +++ b/engines/sci/engine/savegame.cfsml @@ -241,7 +241,7 @@ TYPE IntMapperPtr "IntMapper *" USING write_IntMapperPtr read_IntMapperPtr; TYPE IntMapperNodePtr "IntMapper::Node *" USING write_IntMapperNodePtr read_IntMapperNodePtr; TYPE songlib_t "songlib_t" USING write_songlib_t read_songlib_t; TYPE song_tp "song_t *" USING write_song_tp read_song_tp; -TYPE song_iterator_t "song_iterator_t" USING write_song_iterator_t read_song_iterator_t; +TYPE SongIterator "SongIterator" USING write_song_iterator_t read_song_iterator_t; TYPE song_handle_t "song_handle_t" LIKE int; TYPE SegManagerPtr "SegManager *" USING write_SegManagerPtr read_SegManagerPtr; @@ -495,7 +495,7 @@ void write_song_tp(Common::WriteStream *fh, const song_t * const *foo) { %CFSMLWRITE song_t *foo INTO fh; } -song_iterator_t *build_iterator(EngineState *s, int song_nr, int type, songit_id_t id); +SongIterator *build_iterator(EngineState *s, int song_nr, int type, songit_id_t id); int read_song_tp(Common::SeekableReadStream *fh, song_t **foo, const char *lastval, int *line, int *hiteof) { char *token; @@ -1003,7 +1003,7 @@ void reconstruct_clones(EngineState *s, SegManager *self) { int _reset_graphics_input(EngineState *s); -song_iterator_t *new_fast_forward_iterator(song_iterator_t *it, int delta); +SongIterator *new_fast_forward_iterator(SongIterator *it, int delta); static void reconstruct_sounds(EngineState *s) { song_t *seeker; @@ -1017,13 +1017,13 @@ static void reconstruct_sounds(EngineState *s) { } while (seeker) { - song_iterator_t *base, *ff; + SongIterator *base, *ff; int oldstatus; - song_iterator_message_t msg; + SongIteratorMessage msg; base = ff = build_iterator(s, seeker->resource_num, it_type, seeker->handle); if (seeker->restore_behavior == RESTORE_BEHAVIOR_CONTINUE) - ff = (song_iterator_t *)new_fast_forward_iterator(base, seeker->restore_time); + ff = (SongIterator *)new_fast_forward_iterator(base, seeker->restore_time); ff->init(ff); msg = songit_make_message(seeker->handle, SIMSG_SET_LOOPS(seeker->loops)); -- cgit v1.2.3