Radical changes on design

After some feedback from Max/Fingolfin in the devel mail list, my old inheritance based design of subsystems resulted to be not that good. Instead, Max Horn suggested that I should work with the actual structure of Managers.

Until now, I’ve moved the sdl graphics and mutex code to their new Managers class, and I’ve ScummVM working with these changes. However, the code still needs lots of revision, and I still have to do the same with events, timer and audio.

There are some problems I still need to fix, like where to place shared code between the subsystems or how is the better way for the managers to interact with each other.

So, this new week work plans are:

  • Finish the sdl managers (audio, timer, events)
  • Clean the actual code, and fix some actual code issues
  • And start with the real sdl backend refactoring, as until now I’ve just started working on it and haven’t made much except from diving the actual code