mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 03:40:46 +00:00
36c1d826fd
This reverts commit 3e123fce55
.
44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
using HarmonyLib;
|
|
using static EntitlementsManager;
|
|
|
|
namespace EpicRerouter.ModSide
|
|
{
|
|
public static class Patches
|
|
{
|
|
public static void Apply() => Harmony.CreateAndPatchAll(typeof(Patches));
|
|
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch("instance", MethodType.Getter)]
|
|
private static bool GetInstance()
|
|
{
|
|
Interop.Log("instance get called. return nothing");
|
|
return false;
|
|
}
|
|
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch("instance", MethodType.Setter)]
|
|
private static bool SetInstance()
|
|
{
|
|
Interop.Log("instance set called. do nothing");
|
|
return false;
|
|
}
|
|
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch("platformInterface", MethodType.Getter)]
|
|
private static bool GetPlatformInterface()
|
|
{
|
|
Interop.Log("platformInterface get called. return nothing");
|
|
return false;
|
|
}
|
|
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch(typeof(EntitlementsManager), nameof(EntitlementsManager.IsDlcOwned))]
|
|
private static bool IsDlcOwned(out AsyncOwnershipStatus __result)
|
|
{
|
|
__result = Interop.OwnershipStatus;
|
|
Interop.Log($"ownership status = {__result}");
|
|
return false;
|
|
}
|
|
}
|
|
}
|