A little bit of work on Inspectors, fixed a few issues in Mono/BepInEx builds

This commit is contained in:
sinaioutlander
2020-10-28 20:52:40 +11:00
parent b61ac481b9
commit b5b3e90b09
19 changed files with 222 additions and 206 deletions

View File

@ -82,7 +82,7 @@ namespace ExplorerBeta.UI
{
try
{
HarmonyInstance harmony =
var harmony =
#if ML
ExplorerMelonMod.Instance.harmonyInstance;
#else
@ -103,10 +103,10 @@ namespace ExplorerBeta.UI
harmony.Patch(prop.GetGetMethod(), postfix: patch);
}
}
catch (Exception e)
catch // (Exception e)
{
string suf = setter ? "set_" : "get_";
ExplorerCore.Log($"Unable to patch {type.Name}.{suf}{property}: {e.Message}");
//string suf = setter ? "set_" : "get_";
//ExplorerCore.Log($"Unable to patch {type.Name}.{suf}{property}: {e.Message}");
}
}