Merge branch 'nymashock' of https://github.com/CasualPokePlayer/BizHawk into nymashock

This commit is contained in:
CasualPokePlayer 2022-01-26 12:54:16 -08:00
commit 3b18788573
1 changed files with 3 additions and 2 deletions

View File

@ -275,6 +275,9 @@ namespace BizHawk.Emulation.Cores.Waterbox
foreach (var portInfo in allPorts)
{
if (s.AllOverrides.ContainsKey(portInfo.FullName) && s.AllOverrides[portInfo.FullName].Default != null)
portInfo.DefaultDeviceShortName = s.AllOverrides[portInfo.FullName].Default;
s.Ports.Add(new NymaSettingsInfo.Port
{
Name = portInfo.FullName,
@ -286,8 +289,6 @@ namespace BizHawk.Emulation.Cores.Waterbox
SettingValue = dev.ShortName
}).ToList()
});
if (s.AllOverrides.ContainsKey(portInfo.FullName) && s.AllOverrides[portInfo.FullName].Default != null)
portInfo.DefaultDeviceShortName = s.Ports.Last().DefaultSettingsValue = s.AllOverrides[portInfo.FullName].Default;
}
var originalSettings = GetSettingsData();