Unify IconReplacer and IconReplaceChecker, cleanup

This commit is contained in:
goat 2019-10-18 22:01:35 +09:00
parent a3fe81d310
commit 1bd4eed72c
5 changed files with 29 additions and 78 deletions

View file

@ -42,8 +42,6 @@ namespace Dalamud {
public readonly IconReplacer IconReplacer;
public readonly IconReplaceChecker IconReplaceChecker;
public Dalamud(DalamudStartInfo info) {
this.StartInfo = info;
@ -71,9 +69,7 @@ namespace Dalamud {
this.PluginManager = new PluginManager(this, info.PluginDirectory, info.DefaultPluginDirectory);
this.IconReplaceChecker = new IconReplaceChecker(this.targetModule, this.sigScanner);
this.IconReplacer = new IconReplacer(this, this.targetModule, this.sigScanner);
this.IconReplacer = new IconReplacer(this, this.sigScanner);
try {
this.PluginManager.LoadPlugins();
@ -89,8 +85,6 @@ namespace Dalamud {
this.BotManager.Start();
this.IconReplaceChecker.Enable();
this.IconReplacer.Enable();
}
@ -109,8 +103,6 @@ namespace Dalamud {
this.unloadSignal.Dispose();
this.IconReplaceChecker.Dispose();
this.IconReplacer.Dispose();
}