From b8b05ae998c8f918b2e253ff6e64cbcf6b6a4481 Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Sun, 26 Apr 2020 15:15:50 +0200 Subject: [PATCH] fix: don't load ChatExtender if it's <1400 (hack, remove this some time) --- Dalamud/Plugin/PluginManager.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Dalamud/Plugin/PluginManager.cs b/Dalamud/Plugin/PluginManager.cs index 56755bd53..3725658f8 100644 --- a/Dalamud/Plugin/PluginManager.cs +++ b/Dalamud/Plugin/PluginManager.cs @@ -100,6 +100,19 @@ namespace Dalamud.Plugin JsonConvert.DeserializeObject( File.ReadAllText(defJsonFile.FullName)); + // Don't wanna fuck this up + // This is a fix for earlier Chat Extender versions, since they break command handlers + try { + if (dllFile.Name.Contains("ChatExtender") && + int.Parse(pluginDef.AssemblyVersion.Replace(".", "")) < 1410) { + Log.Information("Found banned ChatExtender, skipping..."); + return false; + } + } catch (Exception) { + // ignored + } + + if (pluginDef.ApplicableVersion != this.dalamud.StartInfo.GameVersion && pluginDef.ApplicableVersion != "any") { Log.Information("Plugin {0} has not applicable version.", dllFile.FullName);