mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-22 02:53:04 +00:00
Added the ability to enter tKeys and cKeys on more systems
This commit is contained in:
parent
df3aed4bea
commit
d6bdb8dcb9
1 changed files with 6 additions and 14 deletions
|
@ -1510,7 +1510,7 @@ namespace UWUVCI_AIO_WPF
|
|||
}
|
||||
public bool checkSysKey(string key)
|
||||
{
|
||||
if (key.GetHashCode() == -589797700)
|
||||
if (key.GetHashCode() == -589797700 || GetDeterministicHashCode(key) == -589797700)
|
||||
{
|
||||
Properties.Settings.Default.SysKey = key;
|
||||
Properties.Settings.Default.Save();
|
||||
|
@ -1524,7 +1524,7 @@ namespace UWUVCI_AIO_WPF
|
|||
}
|
||||
public bool checkSysKey1(string key)
|
||||
{
|
||||
if (key.GetHashCode() == -1230232583)
|
||||
if (key.GetHashCode() == -1230232583 || (GetDeterministicHashCode(key) == -1230232583))
|
||||
{
|
||||
Properties.Settings.Default.SysKey1 = key;
|
||||
Properties.Settings.Default.Save();
|
||||
|
@ -2377,7 +2377,7 @@ namespace UWUVCI_AIO_WPF
|
|||
}
|
||||
public bool checkcKey(string key)
|
||||
{
|
||||
if (1274359530 == key.ToLower().GetHashCode())
|
||||
if (1274359530 == key.ToLower().GetHashCode() || -485504051 == GetDeterministicHashCode(key.ToLower()))
|
||||
{
|
||||
Settings.Default.Ckey = key.ToLower();
|
||||
ckeys = true;
|
||||
|
@ -2390,20 +2390,12 @@ namespace UWUVCI_AIO_WPF
|
|||
}
|
||||
public bool isCkeySet()
|
||||
{
|
||||
if (Settings.Default.Ckey.ToLower().GetHashCode() == 1274359530)
|
||||
{
|
||||
ckeys = true;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
ckeys = false;
|
||||
return false;
|
||||
}
|
||||
ckeys = Settings.Default.Ckey.ToLower().GetHashCode() == 1274359530 || GetDeterministicHashCode(Settings.Default.Ckey.ToLower()) == -485504051;
|
||||
return ckeys;
|
||||
}
|
||||
public bool checkKey(string key)
|
||||
{
|
||||
if (GbTemp.KeyHash == key.ToLower().GetHashCode())
|
||||
if (GbTemp.KeyHash == key.ToLower().GetHashCode() || GbTemp.KeyHash == GetDeterministicHashCode(key.ToLower()))
|
||||
{
|
||||
UpdateKeyInFile(key, $@"bin\keys\{GetConsoleOfBase(gbTemp).ToString().ToLower()}.vck", GbTemp, GetConsoleOfBase(gbTemp));
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue