From 36697b10341ef2e8ffd1644f7548fe6e964e549a Mon Sep 17 00:00:00 2001 From: BigETI Date: Mon, 31 Dec 2018 16:52:33 +0100 Subject: [PATCH] Fixed local plugins not being loaded. --- .vs/SAMPLauncherNET/v15/.suo | Bin 312320 -> 338944 bytes SAMPLauncherNET/Properties/AssemblyInfo.cs | 4 +-- .../Core/PluginDataContract.cs | 32 ++++++++++++++++++ .../SAMPLauncherNET/Core/PluginProvider.cs | 8 ++--- 4 files changed, 36 insertions(+), 8 deletions(-) diff --git a/.vs/SAMPLauncherNET/v15/.suo b/.vs/SAMPLauncherNET/v15/.suo index e4e79b419aa452b731d8d999883922cbd65662b2..3c856aba4532884b0da1e85565b04d7cb6729750 100644 GIT binary patch delta 14486 zcmeI33tUxI_QzTKY@Q-s5fKsbiiAjrVEDopC^}_=_$VK#fvBj-0u@d(FLI>~ljX5;KS$__v}4D1HE zpalp5?ZE?}GjIo!fzU_G8Lsc(Y?1zsY}fMdTot1+MvNCVx#aNX7Q{)e(~)&yKf zt~jKRgAC9T6aqis55C897qqVrl6GJQco<}ZY2diNz_s0^r*W1J`h%4~!yDs}q6;^> zAe{p8!CbHuJP3M#!N3D~6Oo33C~yNcu0{GBC;$V16%>o~#^z}q?=Hv54dtk6R>xC# zQ%O>dRGn1S{UqF1sXCODS2(ZlCS{fHmy@z8O-VTq{Aeks-%ZL&JANrCD>*6ln7*Yw zK5vr@L*e@AcHv7@?Mr|%csq8mRKTjIq>CsS@rM}|s;w-`I4aHekpAx4hP~ud*X(-Odxc({PT!s916{l)xoj6tH zcM@k^qwXZmCsFvnTb#wd<_dE_jaGbVKDE{tTsrDXN>%itoJd!xxws_pf(7(qMM&_4 zMti)Dk*i($`sqfUN+aWROHgPV#x{1;UKl$*0V(N5i59_rB? z!|n&vT|K+}q<&b$=-IpTDVYExdTx&`HW{}F?!CM|Vv^$yvZEi+|^ z(KnE)$reCD?@|_T#0OIq75j!5A*pnMbj!z~dg%EVJV{xKuTzIAuAcYCBQ+MsF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@by*I+5~$qx0B>0*UlJpsqgS*Mym=icJXb0Upq|Rf^3l< z)|HpC?JQaJ7r*ewjKyeu%yp)~p1k->y|j3$|0c|Hr7TG;Uw!iuWw8z(z5_hSeFee&lhc^gO#ed%nocdt z2O|T=Y9Q5i^Kk zUW@*RmsI?)gHs3pGDzT>Qju%AKzw5J)ql6o8?!#c9p=Dm`pt;q+SjC)k+c~Je{*!h z7fKb~&bgfF(JDAo*Wpg7MrIWtANw{At`K;p829Q>d+X#Vb)GAvd>2t4df}oi zYY#@*-v(n%gEaMXbqk8d-0!#~1a3eB#sqQcKBbC9h_?RwCBH@^$-l$R{Wa>Z`h+w(Wrf4xgxRVu=bC&+=6Q$(_7?b8V2XWzH>I3t@HSi>?eOfNjU2tfq=bcS0goe-h(iKm{hB)i>g39LY)D z$heZuwknT!h6-FlZ+5^T+;|H27pIWLC?~I{t?<>`t?Y~on`g}n8@Ba;WX$i(rTZY) zOCMqx5R#9J1~vIDF6yjGl#1N0`vXOMn%e3~{AbQYd^&Lbw?otIvaa2a|Dh_^aqB_W N@k, /// private bool updateFrequencyItemParsed; + /// + /// Path + /// + private string path; + /// /// Name /// @@ -152,6 +157,33 @@ public string TranslatableText } } + /// + /// Path + /// + public string Path + { + get + { + if (path == null) + { + try + { + Uri uri = new Uri(URI); + path = (uri.IsFile ? uri.AbsolutePath : uri.AbsoluteUri); + } + catch (Exception e) + { + Console.Error.WriteLine(e); + } + if (path == null) + { + path = ""; + } + } + return path; + } + } + /// /// Constructor /// diff --git a/SAMPLauncherNET/Source/SAMPLauncherNET/Core/PluginProvider.cs b/SAMPLauncherNET/Source/SAMPLauncherNET/Core/PluginProvider.cs index 301e8c2..987f695 100644 --- a/SAMPLauncherNET/Source/SAMPLauncherNET/Core/PluginProvider.cs +++ b/SAMPLauncherNET/Source/SAMPLauncherNET/Core/PluginProvider.cs @@ -129,9 +129,9 @@ public static InstalledPlugin Update(PluginDataContract plugin) case EPluginProvider.URI: if (uri.IsFile) { - if (!(File.Exists(plugin.URI))) + if (File.Exists(plugin.Path)) { - ret = new InstalledPlugin(plugin.URI); + ret = new InstalledPlugin(plugin.Path); } } else @@ -148,10 +148,6 @@ public static InstalledPlugin Update(PluginDataContract plugin) } else { - if (File.Exists(download_path)) - { - File.Delete(download_path); - } download_url = plugin.URI; } break;