[Scummvm-devel] New way of handling GUIO
Eugene Sandulenko
sev at scummvm.org
Sun Oct 23 18:56:46 CEST 2011
Hi guys,
I just pushed new code for GUIO. It used to be a bitfield, but now is
sequence of bytes. This gives me up to 255 options instead of 31.
As such all engines which are outside of the tree have to be altered slightly.
Basically the code is located in detection tables, and now instead of writing
Common::GUIO_OPT1 | Common::GUIO_OPT2 | Common::GUIO_OPT3
you write
GUIO3(GUIO_OPT1, GUIO_OPT2, GUIO_OPT3)
There are macros for up to 5 GUI options per entry, but it is
straightforward to add more.
It is part of upcoming further work on GUI Options with the goal to
cover most of our GUI switches/options.
Eugene
More information about the Scummvm-devel
mailing list