Files
OpenPlexusX/VibranceHud/Display/Nvapi.cs
T
2026-11-24 23:40:08 +03:00

28 lines
345 B
C#

using NvAPIWrapper;
namespace VibranceHud.Display;
internal static class Nvapi
{
private static bool? _ready;
internal static bool Ready()
{
bool? ready = _ready;
if (ready.HasValue)
{
return ready == true;
}
try
{
NVIDIA.Initialize();
_ready = true;
}
catch
{
_ready = false;
}
return _ready.Value;
}
}