Difference between revisions of "SCI/TODO"

From ScummVM :: Wiki
< SCI
Jump to navigation Jump to search
(add SCI bugs)
(add fixme)
Line 9: Line 9:
** Replace various generic FreeSCI code by their ScummVM counterparts, where it make sense.
** Replace various generic FreeSCI code by their ScummVM counterparts, where it make sense.
** Check old FreeSCI-scummvm branch / repos by Jordi for change that could be salvaged, e.g. the files <code>sfx/device/scumm-midi.cpp</code> and <code>sfx/softseq/scumm-adlib.cpp</code>, and stuff.
** Check old FreeSCI-scummvm branch / repos by Jordi for change that could be salvaged, e.g. the files <code>sfx/device/scumm-midi.cpp</code> and <code>sfx/softseq/scumm-adlib.cpp</code>, and stuff.
** Fix the generation of EXEC_STACK_TYPE_KERNEL stack frames in invoke_selector(). The kcall number is currently missing.


* Difficult
* Difficult

Revision as of 22:58, 29 September 2009

  • Easy
    • rename the sfx/ dir to sound/ or audio/ (it doesn't just deal with "sound effects).
    • change the many nice existing function documentation comments to use doxygen syntax
    • Change #define lists into enums
  • Medium
    • Convert stuff from "C pseudo classes" to real classes.
    • 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.
    • Replace various generic FreeSCI code by their ScummVM counterparts, where it make sense.
    • Check old FreeSCI-scummvm branch / repos by Jordi for change that could be salvaged, e.g. the files sfx/device/scumm-midi.cpp and sfx/softseq/scumm-adlib.cpp, and stuff.
    • Fix the generation of EXEC_STACK_TYPE_KERNEL stack frames in invoke_selector(). The kcall number is currently missing.
  • Difficult
    • Turn code into templates in following files (now they generate code via #defines):
      • gfx/picfill.cpp
    • make the SCI tools compilable (to avoid bitrot, while we change code that they depend on), and finally usable again.
    • rewrite the YACC parser code in said.y in pure, readable C++, so we don't need YACC/Bison.
    • use direct drawing instead of using widgets for rendering to be compatible with SSCI.
    • fix palette glitch on PIC transition (when changing rooms).
  • Bugs
    • Quest for Glory
      • The FileSelector (SCI) class used in the import screens in QfG2 and QfG3 has a 'text' pointer, and 'cursor' and 'lsTop'/'topString' pointers that should point to inside 'text'. However, in FileSelector::readFiles, 'text' is freed and reallocated, causing the other pointers to sometimes become invalid.
    • Longbow
      • The sound of the bow in the opening screen is repeated a number of times
      • After leaving the cave and the conversation that follows, the game crashes (List node at 0024:003b is not sane anymore!)