mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
fix: don't load ChatExtender if it's <1400 (hack, remove this some time)
This commit is contained in:
parent
af9d50266c
commit
b8b05ae998
1 changed files with 13 additions and 0 deletions
|
|
@ -100,6 +100,19 @@ namespace Dalamud.Plugin
|
|||
JsonConvert.DeserializeObject<PluginDefinition>(
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue