24 lines
512 B
C#
24 lines
512 B
C#
using HarmonyLib;
|
|
using System.Reflection;
|
|
|
|
namespace TormentedEmu_Mods_A19
|
|
{
|
|
public class Harmony_TE_ObjectManipulator
|
|
{
|
|
[HarmonyPatch(typeof(GameManager), "SetCursorEnabledOverride")]
|
|
public class GameManager_SetCursorEnabledOverride
|
|
{
|
|
static bool Prefix(GameManager __instance, ref bool ___bCursorVisibleOverrideState)
|
|
{
|
|
if (!___bCursorVisibleOverrideState)
|
|
{
|
|
___bCursorVisibleOverrideState = true;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|