mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
fix: adjust injector paths
This commit is contained in:
parent
6f5ac527a7
commit
6e114cc8e4
2 changed files with 8 additions and 3 deletions
|
|
@ -83,9 +83,9 @@ namespace Dalamud.Injector {
|
|||
ConfigurationPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) +
|
||||
@"\XIVLauncher\dalamudConfig.json",
|
||||
PluginDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) +
|
||||
@"\XIVLauncher\plugins",
|
||||
@"\XIVLauncher\installedPluginsI",
|
||||
DefaultPluginDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) +
|
||||
@"\XIVLauncher\defaultplugins",
|
||||
@"\XIVLauncher\devPluginsI",
|
||||
|
||||
GameVersion = "2020.02.11.0000.0000",
|
||||
Language = ClientLanguage.English
|
||||
|
|
|
|||
|
|
@ -107,7 +107,12 @@ namespace Dalamud.Plugin
|
|||
if (!this.dalamud.Configuration.PluginConfigurations.ContainsKey(this.pluginName))
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue