upload
This commit is contained in:
commit
1c7a8cf25f
579 files changed
+83196
No files matched your search
@@ -0,0 +1,31 @@
|
||||
using VibranceHud;
|
||||
using VibranceHud.Hotkeys;
|
||||
using VibranceHud.Licensing;
|
||||
|
||||
namespace A;
|
||||
|
||||
internal static class A
|
||||
{
|
||||
internal static bool Available
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
return ServedNightVision.Live;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal static void ForgetIfUnavailable()
|
||||
{
|
||||
if (!Available)
|
||||
{
|
||||
HotkeyStatus.Forget(HotkeySlot.NightVision);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using VibranceHud;
|
||||
using VibranceHud.Licensing;
|
||||
|
||||
namespace A;
|
||||
|
||||
internal static class e
|
||||
{
|
||||
private static readonly Lazy<ServedVibranceCurve> FallbackCurve = new Lazy<ServedVibranceCurve>(BuildFallback);
|
||||
|
||||
internal static ServedVibranceCurve Fallback => FallbackCurve.Value;
|
||||
|
||||
internal static ServedVibrancePoint A(int P_0, bool P_1, bool P_2)
|
||||
{
|
||||
return Fallback.At(P_0, P_1, P_2);
|
||||
}
|
||||
|
||||
private static ServedVibranceCurve BuildFallback()
|
||||
{
|
||||
float[][] array = new float[351][];
|
||||
for (int i = 0; i < array.Length; i++)
|
||||
{
|
||||
float num = VibranceEngine.SoftwareVibranceFactor(i, driverAvailable: false);
|
||||
float num2 = VibranceEngine.SoftwareVibranceFactor(i, driverAvailable: true);
|
||||
array[i] = new float[5]
|
||||
{
|
||||
Math.Min(i, 100),
|
||||
1f + (num - 1f) * 0.55f,
|
||||
num,
|
||||
1f + (num2 - 1f) * 0.55f,
|
||||
num2
|
||||
};
|
||||
}
|
||||
return new ServedVibranceCurve(array);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user