From 532776a696936cc6694ad460007a17bf87d65c1a Mon Sep 17 00:00:00 2001 From: Jiiks Date: Wed, 10 Feb 2016 04:27:04 +0200 Subject: [PATCH] Latest asar.net, added emotecache deletion --- .../BetterDiscordWI/BetterDiscordWI.csproj | 2 +- .../BetterDiscordWI/panels/Panel2.cs | 24 ++++++++++++++++++ WindowsInstaller/dlls/asardotnet.dll | Bin 8704 -> 8704 bytes 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/WindowsInstaller/BetterDiscordWI/BetterDiscordWI.csproj b/WindowsInstaller/BetterDiscordWI/BetterDiscordWI.csproj index 0ed997317..478c8ae1b 100644 --- a/WindowsInstaller/BetterDiscordWI/BetterDiscordWI.csproj +++ b/WindowsInstaller/BetterDiscordWI/BetterDiscordWI.csproj @@ -41,7 +41,7 @@ - bin\dlls\asardotnet.dll + ..\dlls\asardotnet.dll diff --git a/WindowsInstaller/BetterDiscordWI/panels/Panel2.cs b/WindowsInstaller/BetterDiscordWI/panels/Panel2.cs index 0d47b1eb9..e4b81b11c 100644 --- a/WindowsInstaller/BetterDiscordWI/panels/Panel2.cs +++ b/WindowsInstaller/BetterDiscordWI/panels/Panel2.cs @@ -64,6 +64,30 @@ private void CreateDirectories() { _dataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\BetterDiscord"; _tempPath = _dataPath + "\\temp"; + AppendLog("Deleting old cached files"); + try + { + if (File.Exists(_dataPath + "\\emotes_bttv.json")) + { + File.Delete(_dataPath + "\\emotes_bttv.json"); + } + if (File.Exists(_dataPath + "\\emotes_bttv_2.json")) + { + File.Delete(_dataPath + "\\emotes_bttv_2.json"); + } + if (File.Exists(_dataPath + "\\emotes_ffz.json")) { + File.Delete(_dataPath + "\\emotes_ffz.json"); + } + if (File.Exists(_dataPath + "\\emotes_twitch_global.json")) { + File.Delete(_dataPath + "\\emotes_twitch_global.json"); + } + if (File.Exists(_dataPath + "\\emotes_twitch_subscriber.json")) { + File.Delete(_dataPath + "\\emotes_twitch_subscriber.json"); + } + if (File.Exists(_dataPath + "\\user.json")) { + File.Delete(_dataPath + "\\user.json"); + } + } catch (Exception e) { AppendLog("Failed to delete one or more cached files"); } if (Directory.Exists(_tempPath)) diff --git a/WindowsInstaller/dlls/asardotnet.dll b/WindowsInstaller/dlls/asardotnet.dll index f6dc24859366d3135452071bd979c06c4ae150e0..07158322a8977944b400963d8701073b1b41c390 100644 GIT binary patch delta 2592 zcmaJ@eQXrR6@N3kJG*zjJA3bZJ|6~SW5+(u_QfA0#<&ptnb>L#t--{EG`-k&aK-hS zyEU?7!kN%SNlOuCm9zv}6cnTuRZUu_6^&FBsx%RbQqd|>gw#@KQYB5LqNpj2qbTlg z$1WuQbfx*td%t;KJ8$-5wtKew*pvL^iMj8T^MSUxb3=ho*As0aT$_nXmAT50?;Auu z=&!aCt#m4Ry)(>e`L?L@7&{nkY{Lq!`!G0Z^wT@w6(nMg8Eu{4%8M8~<|LJec|dhu zRa%^nm4Wz75s}(ZtOj`ul8CJ)^2SOb)pde0A@~)GVbYulwXCQD%cgeQ+BvDVrXkJLtXeQx z7)@B9y!Gv%T;C%KQCUnQs)h0*|?;nB$f}MJU-(^5vH)}V6gtMn?SSbA!q#v z7i)l29|V#ff3RImPH^IdeNo{XE-pT-5KGaTQ$X(xYy3l5qP^}#Qy?q+_@c;vR~jEm}gs8J!DF&q{$`O!@2&fGer@N!>? zzix%$nJW<499;Axm1vQLLcBGe$o+ngaWvC>O~{RmyD>TtLm)=(Zr8n}pstqdr4|mU z*JrFQiXny9?}_1jqT#|+tqqWB^wPln1v-^N_EeULta zjE$wLd$;#>V^#}^iWTRAp76VL6r%)Vv$LR=G0h1ZEqSiI&jmFoWs0C~iAjmG5>H6{ zg~T@{zAv#tWvZZc5<6Ab_W_CDRj1TJI<2}}_Ivebu=%G%pLUi4bhj4Q1a)Yqn4qLK z0-FPQ%?)&1;twTt1{k3WXq%u9By&UJO^JnKguGNG9%No>1qvDvry%c=@_DQZ`h&P2 z1bry}1}xECX0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