From c5036bf057a4039626a865348085eeced94337e9 Mon Sep 17 00:00:00 2001 From: adelikat Date: Fri, 30 Aug 2013 19:36:37 +0000 Subject: [PATCH] Merge r4900 to trunk --- BizHawk.MultiClient/Config.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/Config.cs b/BizHawk.MultiClient/Config.cs index e72715a27d..771630d48f 100644 --- a/BizHawk.MultiClient/Config.cs +++ b/BizHawk.MultiClient/Config.cs @@ -829,7 +829,7 @@ namespace BizHawk.MultiClient { get { - return Paths.FirstOrDefault(x => x.System.Contains(system) && x.Type == type); + return Paths.FirstOrDefault(x => x.HasSystem(system) && x.Type == type); } } @@ -1042,6 +1042,11 @@ namespace BizHawk.MultiClient public string System; public int Ordinal; public PathEntry() { } + public bool HasSystem(string systemID) + { + string[] ids = System.Split('_'); + return ids.Contains(systemID); + } } public enum PLUGINTYPE { RICE, GLIDE, GLIDE64MK2 };