upload
This commit is contained in:
commit
1c7a8cf25f
579 files changed
+83196
No files matched your search
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user