mirror of
https://gitgud.io/Stardust3D/rjw-patch-autopsy.git
synced 2024-08-15 00:43:41 +00:00
29 lines
No EOL
768 B
C#
29 lines
No EOL
768 B
C#
using HarmonyLib;
|
|
using System.Reflection;
|
|
using Verse;
|
|
|
|
namespace RJW_patch_Autopsy
|
|
{
|
|
[StaticConstructorOnStartup]
|
|
public class AutopsyPatch
|
|
{
|
|
public static bool SizedApparelActive = false;
|
|
|
|
static AutopsyPatch()
|
|
{
|
|
//check SJW
|
|
if (LoadedModManager.RunningModsListForReading.Any(x => x.Name == "SizedApparel"))
|
|
{
|
|
SizedApparelActive = true;
|
|
}
|
|
|
|
if (LoadedModManager.RunningModsListForReading.Any(x => x.PackageId == "OTYOTY.SizedApparel"))
|
|
{
|
|
SizedApparelActive = true;
|
|
}
|
|
|
|
var har = new Harmony("Stardust3D.RJW.patch.Autopsy");
|
|
har.PatchAll(Assembly.GetExecutingAssembly());
|
|
}
|
|
}
|
|
} |