AUDIO: Added dump-midi mechanism

This mechanism is enabled by '--dump-midi' command line parameter.
The midi events are printed to screen, and dumped to 'dump.mid' file.
This commit is contained in:
Zvika Haramaty 2020-02-19 19:51:53 +02:00 committed by Filippos Karapetis
parent 1fb3d61b56
commit 3b4810aab4
22 changed files with 243 additions and 23 deletions

View file

@ -449,6 +449,12 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
return res.getCode();
}
if (settings.contains("dump-midi")) {
// Store this command line setting in ConfMan, since all transient settings are destroyed
ConfMan.registerDefault("dump_midi", true);
}
// Init the backend. Must take place after all config data (including
// the command line params) was read.
system.initBackend();