1
0
mirror of synced 2024-12-18 07:25:53 +01:00
TakoTako/DisableScreenChangeOnFocus.cs
2022-01-30 16:28:02 +11:00

21 lines
461 B
C#

using HarmonyLib;
namespace TaikoMods;
[HarmonyPatch]
public class DisableScreenChangeOnFocus
{
[HarmonyPatch(typeof(FocusManager), "OnApplicationFocus")]
[HarmonyPrefix]
private static bool OnApplicationFocus_Prefix(bool focusStatus)
{
return false;
}
[HarmonyPatch(typeof(FocusManager), "UpdateFocusManager")]
[HarmonyPrefix]
private static bool UpdateFocusManager_Prefix()
{
return false;
}
}