mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-21 07:17:45 +01:00
chore: remove all MonoMod hooks for now
This commit is contained in:
parent
8a2ba70cc3
commit
f8bd6d20ef
4 changed files with 22 additions and 19 deletions
|
|
@ -136,7 +136,8 @@ internal partial class PluginManager : IDisposable, IServiceType
|
|||
|
||||
this.configuration.PluginTestingOptIns ??= new List<PluginTestingOptIn>();
|
||||
|
||||
this.ApplyPatches();
|
||||
// NET8 CHORE
|
||||
//this.ApplyPatches();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -393,8 +394,9 @@ internal partial class PluginManager : IDisposable, IServiceType
|
|||
plugin.ExplicitDisposeIgnoreExceptions($"Error disposing {plugin.Name}", Log);
|
||||
}
|
||||
|
||||
this.assemblyLocationMonoHook?.Dispose();
|
||||
this.assemblyCodeBaseMonoHook?.Dispose();
|
||||
// NET8 CHORE
|
||||
// this.assemblyLocationMonoHook?.Dispose();
|
||||
// this.assemblyCodeBaseMonoHook?.Dispose();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -804,7 +806,8 @@ internal partial class PluginManager : IDisposable, IServiceType
|
|||
this.installedPluginsList.Remove(plugin);
|
||||
}
|
||||
|
||||
PluginLocations.Remove(plugin.AssemblyName?.FullName ?? string.Empty, out _);
|
||||
// NET8 CHORE
|
||||
// PluginLocations.Remove(plugin.AssemblyName?.FullName ?? string.Empty, out _);
|
||||
|
||||
this.NotifyinstalledPluginsListChanged();
|
||||
this.NotifyAvailablePluginsChanged();
|
||||
|
|
@ -1443,7 +1446,8 @@ internal partial class PluginManager : IDisposable, IServiceType
|
|||
}
|
||||
catch (InvalidPluginException)
|
||||
{
|
||||
PluginLocations.Remove(plugin.AssemblyName?.FullName ?? string.Empty, out _);
|
||||
// NET8 CHORE
|
||||
// PluginLocations.Remove(plugin.AssemblyName?.FullName ?? string.Empty, out _);
|
||||
throw;
|
||||
}
|
||||
catch (BannedPluginException)
|
||||
|
|
@ -1489,7 +1493,8 @@ internal partial class PluginManager : IDisposable, IServiceType
|
|||
}
|
||||
else
|
||||
{
|
||||
PluginLocations.Remove(plugin.AssemblyName?.FullName ?? string.Empty, out _);
|
||||
// NET8 CHORE
|
||||
// PluginLocations.Remove(plugin.AssemblyName?.FullName ?? string.Empty, out _);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
|
@ -1580,6 +1585,8 @@ internal partial class PluginManager : IDisposable, IServiceType
|
|||
}
|
||||
}
|
||||
|
||||
// NET8 CHORE
|
||||
/*
|
||||
/// <summary>
|
||||
/// Class responsible for loading and unloading plugins.
|
||||
/// This contains the assembly patching functionality to resolve assembly locations.
|
||||
|
|
@ -1687,3 +1694,4 @@ internal partial class PluginManager
|
|||
this.assemblyCodeBaseMonoHook = new MonoMod.RuntimeDetour.Hook(codebaseTarget, codebasePatch);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -408,7 +408,8 @@ internal class LocalPlugin : IDisposable
|
|||
}
|
||||
|
||||
// Update the location for the Location and CodeBase patches
|
||||
PluginManager.PluginLocations[this.pluginType.Assembly.FullName] = new PluginPatchData(this.DllFile);
|
||||
// NET8 CHORE
|
||||
// PluginManager.PluginLocations[this.pluginType.Assembly.FullName] = new PluginPatchData(this.DllFile);
|
||||
|
||||
this.DalamudInterface =
|
||||
new DalamudPluginInterface(this, reason);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue