Opened 18 years ago

Last modified 6 years ago

#7535 new feature request

Move special debug flags init to plugin API

Reported by: fingolfin Owned by:
Priority: normal Component: --Other--
Version: Keywords:
Cc: Game:

Description

Right now, the special debug flags (see common/util.cpp) are setup in the Engine constructors.

It would be nice if we changed this by providing a plugin API function whcih returns a list of all special debug flags supported by the engine. This way it would be possible to implement a "--list-debug-flags" CLI command; it would also be possible to preparse/validate the debug flag list. It would be possible to use the debug channels/flags from inside, say, the detection code (before the engine instance has been constructed). Furthermore, other parts of ScummVM (say, backends or MIDI drivers) could take advantage of the debug flags.

It shouldn't be hard to implement the basics of this (adding "--list-debug-flags" could be left for later).

Ticket imported from: #1651696. Ticket imported from: feature-requests/351.

Change History (1)

comment:1 by digitall, 6 years ago

Component: --Other--
Note: See TracTickets for help on using tickets.