Open main menu

Difference between revisions of "SCI/TODO"

90 bytes removed ,  02:01, 24 February 2009
More SCI TODO updates
(Got rid of various already resolved SCI TODOs)
(More SCI TODO updates)
Line 1: Line 1:
The following list is taken from Max's mails to -devel:
* Replace all uses of gint8, etc. by our native types, to get rid of the typedefs we use right now.
* check for places that use char or unsigned char for boolean values, and change those to bool. Even nicer would be to change it to use enum types whose value names express the intention (SearchOptions.RECURSIVE, GraphicsScaleOptions.2X, etc), but just going for bool will already be a big improvement.
* check for places that use char or unsigned char for boolean values, and change those to bool. Even nicer would be to change it to use enum types whose value names express the intention (SearchOptions.RECURSIVE, GraphicsScaleOptions.2X, etc), but just going for bool will already be a big improvement.
* more formatting fixes: The SCI code puts return values on separate lines all over the place, e.g.
* more formatting fixes: The SCI code puts return values on separate lines all over the place, e.g.
<syntax type="C++">
<syntax type="C++">
   int
   int
   _vocab_cmp_words(const void *word1, const void *word2) {
   _vocab_cmp_words(const void *word1, const void *word2) {
</syntax>
</syntax>
Take care of that and other formatting issues.
Take care of that and other formatting issues.


* change #define lists into enums
* Change #define lists into enums
* Rearranging the files under engines/sci: I.e. get rid of include/ subdir (just move its contents to engines/sci, at some point at least)
* Rearrange the files under engines/sci: I.e. get rid of include/ subdir (just move its contents to engines/sci, at some point at least). Some source files should also be renamed for clarity.
* Converting stuff from "C pseudo classes" to real classes
* Convert stuff from "C pseudo classes" to real classes.
* Replacing various generic FreeSCI stuff by their ScummVM counterparts.  
* Replace various generic FreeSCI code by their ScummVM counterparts, where it make sense.
* Replace sci_gettime and sci_get_current_time by OSystem::getTimeAndDate and OSystem::getMillis
* Replace sci_gettime and sci_get_current_time by OSystem::getTimeAndDate and OSystem::getMillis
# You first need to find out which is used where: Des the code try to determine the current time? Use getTimeAndDate(). Does it try to measure something, regulate timing? Using getMillis. It is possible that some code actually really wants to get a higher resolution than milli seconds, in that case get back to us and let's discuss what to do.
# You first need to find out which is used where: Des the code try to determine the current time? Use getTimeAndDate(). Does it try to measure something, regulate timing? Using getMillis. It is possible that some code actually really wants to get a higher resolution than milli seconds, in that case get back to us and let's discuss what to do.
1,079

edits