diff --git a/WindowsInstaller/BetterDiscordWI/BetterDiscordWI.csproj b/WindowsInstaller/BetterDiscordWI/BetterDiscordWI.csproj index 0ed99731..478c8ae1 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 0d47b1eb..e4b81b11 100644 --- a/WindowsInstaller/BetterDiscordWI/panels/Panel2.cs +++ b/WindowsInstaller/BetterDiscordWI/panels/Panel2.cs @@ -64,6 +64,30 @@ namespace BetterDiscordWI.panels { _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 f6dc2485..07158322 100644 Binary files a/WindowsInstaller/dlls/asardotnet.dll and b/WindowsInstaller/dlls/asardotnet.dll differ