fix: adjust injector paths

This commit is contained in:
goat 2020-03-01 15:05:28 +09:00
parent 6f5ac527a7
commit 6e114cc8e4
2 changed files with 8 additions and 3 deletions

View file

@ -83,9 +83,9 @@ namespace Dalamud.Injector {
ConfigurationPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + ConfigurationPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) +
@"\XIVLauncher\dalamudConfig.json", @"\XIVLauncher\dalamudConfig.json",
PluginDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + PluginDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) +
@"\XIVLauncher\plugins", @"\XIVLauncher\installedPluginsI",
DefaultPluginDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + DefaultPluginDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) +
@"\XIVLauncher\defaultplugins", @"\XIVLauncher\devPluginsI",
GameVersion = "2020.02.11.0000.0000", GameVersion = "2020.02.11.0000.0000",
Language = ClientLanguage.English Language = ClientLanguage.English

View file

@ -107,7 +107,12 @@ namespace Dalamud.Plugin
if (!this.dalamud.Configuration.PluginConfigurations.ContainsKey(this.pluginName)) if (!this.dalamud.Configuration.PluginConfigurations.ContainsKey(this.pluginName))
return null; return null;
return this.dalamud.Configuration.PluginConfigurations[this.pluginName] as IPluginConfiguration; if (!(this.dalamud.Configuration.PluginConfigurations[this.pluginName] is IPluginConfiguration config))
return null;
Serilog.Log.Information("Found plugin config for {0} v{1}", this.pluginName, config.Version);
return config;
} }
#region Logging #region Logging