aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/savegame.cfsml
diff options
context:
space:
mode:
authorMax Horn2009-03-06 07:25:06 +0000
committerMax Horn2009-03-06 07:25:06 +0000
commit5e2ee01b39392eecd966624e1d0efc75ee41bc10 (patch)
tree11bc9449bf493223a13d78739bb6702bb56728fc /engines/sci/engine/savegame.cfsml
parent0c681f85a4035d44948e53584cc4d5c8ca324ba9 (diff)
downloadscummvm-rg350-5e2ee01b39392eecd966624e1d0efc75ee41bc10.tar.gz
scummvm-rg350-5e2ee01b39392eecd966624e1d0efc75ee41bc10.tar.bz2
scummvm-rg350-5e2ee01b39392eecd966624e1d0efc75ee41bc10.zip
SCI: Renamed lots of classes related to song iterators; allocate song iterators via new/delete instead of malloc/free
svn-id: r39148
Diffstat (limited to 'engines/sci/engine/savegame.cfsml')
-rw-r--r--engines/sci/engine/savegame.cfsml12
1 files changed, 6 insertions, 6 deletions
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));