GUI: No silent crash on startup if plugin option type has changed
This commit is contained in:
@@ -165,7 +165,11 @@ namespace Il2CppInspectorGUI
|
|||||||
_ => throw new ArgumentException("Unsupported JSON type")
|
_ => throw new ArgumentException("Unsupported JSON type")
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// An invalid cast will occur if a plugin author changes the type of one of its options
|
||||||
|
try {
|
||||||
managedPlugin.SetOptions(options, OptionBehaviour.NoValidation);
|
managedPlugin.SetOptions(options, OptionBehaviour.NoValidation);
|
||||||
|
} catch (InvalidCastException) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user