Make EmuClientApi.SystemIdConverter a static instance
This commit is contained in:
parent
9fc853d404
commit
87a4f1186e
|
@ -72,7 +72,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
}
|
||||
|
||||
internal readonly BizHawkSystemIdToEnumConverter SystemIdConverter = new BizHawkSystemIdToEnumConverter();
|
||||
internal static readonly BizHawkSystemIdToEnumConverter SystemIdConverter = new BizHawkSystemIdToEnumConverter();
|
||||
|
||||
private IVideoProvider VideoProvider { get; set; }
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
item.Tag = (externalToolFile.Location, entryPoint.FullName); // Tag set => no errors (show custom icon even when disabled)
|
||||
if (applicabilityAttrs.Count == 1)
|
||||
{
|
||||
var system = GlobalWin.ClientApi.SystemIdConverter.Convert(GlobalWin.Emulator.SystemId);
|
||||
var system = EmuClientApi.SystemIdConverter.Convert(GlobalWin.Emulator.SystemId);
|
||||
if (applicabilityAttrs[0].NotApplicableTo(system))
|
||||
{
|
||||
item.ToolTipText = system == CoreSystem.Null
|
||||
|
|
Loading…
Reference in New Issue