Add extraArgs support for PCE and PCE IBM PC example

This commit is contained in:
Pengan Zhou
2018-10-10 23:17:48 -07:00
parent 58e2ff2805
commit fcdeeb5245
2 changed files with 72 additions and 0 deletions
+7
View File
@@ -683,6 +683,9 @@ var Module = null;
function PCELoader() {
var config = Array.prototype.reduce.call(arguments, extend);
config.emulator_arguments = ["-c", "/emulator/pce-"+ config.pceModel +".cfg"];
if (config.extra_pce_args && config.extra_pce_args.length > 0) {
config.emulator_arguments = config.emulator_arguments.concat(config.extra_pce_args);
}
config.runner = EmscriptenRunner;
return config;
}
@@ -692,6 +695,10 @@ var Module = null;
return { pceModel: model };
};
PCELoader.extraArgs = function (args) {
return { extra_pce_args: args };
};
var build_mame_arguments = function (muted, driver, native_resolution, sample_rate, peripheral, extra_args, keepaspect) {
var args = [driver,
'-verbose',