faust - hide ports 3-5 and/or 6-8 depending on multitap settings
This commit is contained in:
parent
60614ffa7b
commit
13a5e9d102
|
@ -19,6 +19,22 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.Faust
|
|||
DoInit<LibNymaCore>(game, rom, null, "faust.wbx", extension, deterministic);
|
||||
}
|
||||
|
||||
protected override HashSet<string> ComputeHiddenPorts()
|
||||
{
|
||||
var devCount = 8;
|
||||
if (SettingsQuery("snes_faust.input.sport1.multitap") != "1")
|
||||
devCount -= 3;
|
||||
if (SettingsQuery("snes_faust.input.sport2.multitap") != "1")
|
||||
devCount -= 3;
|
||||
var ret = new HashSet<string>();
|
||||
for (var i = 1; i <= 8; i++)
|
||||
{
|
||||
if (i > devCount)
|
||||
ret.Add($"port{i}");
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
protected override IDictionary<string, string> SettingsOverrides { get; } = new Dictionary<string, string>
|
||||
{
|
||||
// { "snes_faust.renderer", null },
|
||||
|
|
Loading…
Reference in New Issue