From 4236662f5315eda5f6edf24eb0de3bd7e4db4602 Mon Sep 17 00:00:00 2001 From: nattthebear Date: Wed, 27 May 2020 11:06:53 -0400 Subject: [PATCH] Change logic on what goes in the toolbox If a tool has no toolattribute, it is presumed to be released. Fixes #2015 --- src/BizHawk.Client.EmuHawk/tools/ToolBox.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/tools/ToolBox.cs b/src/BizHawk.Client.EmuHawk/tools/ToolBox.cs index 5a34f8a9da..839fd0568b 100644 --- a/src/BizHawk.Client.EmuHawk/tools/ToolBox.cs +++ b/src/BizHawk.Client.EmuHawk/tools/ToolBox.cs @@ -46,7 +46,7 @@ namespace BizHawk.Client.EmuHawk .Where(t => typeof(Form).IsAssignableFrom(t)) .Where(t => !typeof(ToolBox).IsAssignableFrom(t)) .Where(t => ServiceInjector.IsAvailable(Emulator.ServiceProvider, t)) - .Where(t => VersionInfo.DeveloperBuild || t.GetCustomAttributes(false).OfType().Any(a => a.Released)); + .Where(t => VersionInfo.DeveloperBuild || !t.GetCustomAttributes(false).OfType().Any(a => !a.Released)); foreach (var t in tools) {