mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Fix debug symbols and local references
This commit is contained in:
1 parent
796c7b0c83
commit
fa12e0402e
2 files changed
+4
-6
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user