From b73a791948b36a88b9c512e44c7f05a495920d53 Mon Sep 17 00:00:00 2001 From: Crzyrndm Date: Wed, 24 Dec 2014 16:05:28 +1300 Subject: [PATCH] linux filename fix --- FilterExtension/Core.cs | 6 ++++-- .../Filter Extensions/FilterExtensions.dll | Bin 22016 -> 22528 bytes 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/FilterExtension/Core.cs b/FilterExtension/Core.cs index 00a7a5fb..7a1645a8 100644 --- a/FilterExtension/Core.cs +++ b/FilterExtension/Core.cs @@ -35,8 +35,8 @@ void Awake() if (string.IsNullOrEmpty(p.partUrl)) continue; - - string name = p.partUrl.Split('/')[0]; + p.partUrl = KSPUtil.SanitizeFilename(p.partUrl); + string name = p.partUrl.Split('_')[0]; if (!modNames.Contains(name)) modNames.Add(name); @@ -114,6 +114,8 @@ private void editor() if (c.subcategories.Count == 0) PartCategorizer.Instance.filters.Remove(c); } + + PartCategorizer.Instance.SetAdvancedMode(); } private void refreshList() diff --git a/GameData/Filter Extensions/FilterExtensions.dll b/GameData/Filter Extensions/FilterExtensions.dll index f29f1a161a57a7bc75fe2f3a6811cc162dd781cd..0cdcccaf6940f131fff9c46a1e5087f5f39ca992 100644 GIT binary patch delta 6336 zcmdT{4Rlr2mEPyv`|f-1zMt@3lJ^ow!h0c!H}B=;hZqbI2>%j(N+dyuwjv6}RODik zVbBM>#8Ur?mT&^*S(K*?`InyichcD)=JLbdE#*&^AR;eq1np*-tR03 z?!TL8mcZRa6P4b0wiRcKboC3+#PGk_dW0p}JnIm$66wZlkhMaxarDs!jL8m!0+Er6c7y`v z9GD{80&cH~x%HGA!dwXJ{6wlJT?Wx>B6&URH*N%LNME^f$kJ{R-tcl<9wLPcv?rikh^mt%3$6E72FnpHPqVig8h-eKs;k1 zEFG^iT4}afPx|V#n}N++tTVncpEOP3(xm%Ss7}4VAowt6LClTHgJipsSz(uP2Sgut8wDbq%UA-K`VGRl`Xix%b=g%gmx^IpG8NX0FGKWu z%*hyauCT1*TUeJTor6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