mirror of
https://github.com/db48x/emularity.git
synced 2026-07-28 04:07:11 +00:00
Add extraArgs support for PCE and PCE IBM PC example
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user