GSoC: Select drivers in GUI based on output types
|Reported by:||SF/sud03r||Owned by:||sev-|
Currently, in the GUI a user can select an output driver independent of what a given game supports as all concrete output implementations are shown. For example, monkey-vga supports MIDI, ADLIB and PC Speaker outputs whereas currently a user can select FM towns driver as well. However, if an inappropriate driver is selected, that selection is discarded and autoconfiguration is used instead.So a user can hear a different output while he is expecting for some other output.
In this patch, I add a call (getSupportedMusicTypes()) in metaengine to return the supported output types. The file gui/options.cpp is modified to add drivers in the list only if it is in accordance with supported output types. I have tested the same by implementing the method for scummMetaEngine and testing with monkey-vga.
The method could be similarly implemented by rest of the engines as well.
Ticket imported from: #2988641. Ticket imported from: patches/1274.