Fix debug symbols and local references

This commit is contained in:
Bepis committed 2018-07-26 01:23:44 +10:00
1 parent 796c7b0c83
commit fa12e0402e
2 files changed
+4 -6

No files matched your search

+2
View File
@@ -34,6 +34,7 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
<ItemGroup>
<Reference Include="0Harmony">
@@ -45,6 +46,7 @@
<Reference Include="System" />
<Reference Include="UnityEngine">
<HintPath>..\lib\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
+2 -6
View File
@@ -90,12 +90,8 @@ namespace BepInEx.Bootstrap
foreach (KeyValuePair<AssemblyPatcherDelegate, IEnumerable<string>> kv in GetPatcherMethods(assembly))
sortedPatchers.Add(assembly.GetName().Name, kv);
}
catch (BadImageFormatException)
{
} //unmanaged DLL
catch (ReflectionTypeLoadException)
{
} //invalid references
catch (BadImageFormatException) { } //unmanaged DLL
catch (ReflectionTypeLoadException) { } //invalid references
foreach (KeyValuePair<string, KeyValuePair<AssemblyPatcherDelegate, IEnumerable<string>>> kv in sortedPatchers)
AddPatcher(kv.Value.Value, kv.Value.Key);