-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue if last mod in load order pre-loads patches, and show tips …
…while loading :)
- Loading branch information
Sam Byass
committed
Nov 24, 2020
1 parent
cee2abf
commit 4077d8e
Showing
5 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Reflection; | ||
using JetBrains.Annotations; | ||
using Verse; | ||
|
||
namespace BetterLoading | ||
{ | ||
public static class ModContentPackMirror | ||
{ | ||
private static readonly FieldInfo PatchesField = typeof(ModContentPack).GetField("patches", BindingFlags.NonPublic | BindingFlags.Instance); | ||
|
||
public static List<PatchOperation>? GetPatches(ModContentPack instance) | ||
{ | ||
return (List<PatchOperation>?) PatchesField.GetValue(instance); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters