26 lines
312 B
C#
26 lines
312 B
C#
namespace VibranceHud.Zoom;
|
|
|
|
public static class ZoomEmergency
|
|
{
|
|
internal static volatile bool WeZoomed;
|
|
|
|
public static void Reset()
|
|
{
|
|
try
|
|
{
|
|
MagRuntime.Native.MagSetFullscreenTransform(1f, 0, 0);
|
|
}
|
|
catch
|
|
{
|
|
}
|
|
}
|
|
|
|
public static void ResetIfWeZoomed()
|
|
{
|
|
if (WeZoomed)
|
|
{
|
|
Reset();
|
|
}
|
|
}
|
|
}
|