make it resilent against restarts/reloads remove all user interaction for resource gathering compute hashes on first time file resolving and on updates of said file on resolving
30 lines
693 B
C#
30 lines
693 B
C#
using Dalamud.Configuration;
|
|
using Dalamud.Plugin;
|
|
using System;
|
|
|
|
namespace MareSynchronos
|
|
{
|
|
[Serializable]
|
|
public class Configuration : IPluginConfiguration
|
|
{
|
|
public int Version { get; set; } = 0;
|
|
|
|
public string PenumbraFolder { get; set; } = string.Empty;
|
|
|
|
// the below exist just to make saving less cumbersome
|
|
|
|
[NonSerialized]
|
|
private DalamudPluginInterface? pluginInterface;
|
|
|
|
public void Initialize(DalamudPluginInterface pluginInterface)
|
|
{
|
|
this.pluginInterface = pluginInterface;
|
|
}
|
|
|
|
public void Save()
|
|
{
|
|
this.pluginInterface!.SavePluginConfig(this);
|
|
}
|
|
}
|
|
}
|