[Scummvm-devel] Unifying data loading, saving and printing (SCUMM, Tinsel & Cine, maybe others?)
Kari Salminen
kari.salminen at gmail.com
Wed Jul 30 13:20:19 CEST 2008
Hi everyone,
Max threw the idea that at some point we might combine
the savegame handling so that at least SCUMM, Tinsel and
Cine could use the same code for handling their savegames.
I really like this idea but it also brought another thing to my mind:
How about also putting debug printing into the mix (As saving
and loading of data is already combined into a single function in
the SCUMM engine).
Using the same structs that describe what variables to load or
save we could make a printout of the variables' values (The
structs contain information about what type the variables are,
their signedness, size etc). That'd be a big help in debugging
and it'd be nice to not have to generate those debug printing
routines by hand ;-).
Links to SCUMM's saveload.h/.cpp for reference:
http://scummvm.svn.sourceforge.net/viewvc/scummvm/scummvm/trunk/engines/scumm/saveload.h?view=markup
http://scummvm.svn.sourceforge.net/viewvc/scummvm/scummvm/trunk/engines/scumm/saveload.cpp?view=markup
Kari Salminen / Buddha^
http://buddhahacks.wordpress.com/
More information about the Scummvm-devel
mailing list