Plugins: Add IPluginOption.SetFromString()

This commit is contained in:
Katy Coe
2021-01-26 11:27:56 +01:00
parent 8079cc6f43
commit d665e1b3c8
3 changed files with 32 additions and 0 deletions

View File

@@ -78,6 +78,7 @@ namespace Il2CppInspectorGUI
public object Value { get; set; }
[JsonIgnore]
public Func<bool> If { get; set; }
public void SetFromString(string value) { }
}
// Application startup
@@ -149,6 +150,8 @@ namespace Il2CppInspectorGUI
managedPlugin.Enabled = savedState.Enabled;
// Set options
// TODO: Use IPluginOption.SetFromString() instead
if (savedState.Plugin.Options != null) {
var options = new Dictionary<string, object>();