Upload from upload_mods.ps1
This commit is contained in:
23
TormentedEmu/TE_ObjectManipulator/Harmony/Harmony.cs
Normal file
23
TormentedEmu/TE_ObjectManipulator/Harmony/Harmony.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user