Added the ability to enter tKeys and cKeys on more systems

This commit is contained in:
ZestyTS 2024-07-13 21:43:26 -07:00
parent df3aed4bea
commit d6bdb8dcb9

View file

@ -1510,7 +1510,7 @@ namespace UWUVCI_AIO_WPF
} }
public bool checkSysKey(string key) public bool checkSysKey(string key)
{ {
if (key.GetHashCode() == -589797700) if (key.GetHashCode() == -589797700 || GetDeterministicHashCode(key) == -589797700)
{ {
Properties.Settings.Default.SysKey = key; Properties.Settings.Default.SysKey = key;
Properties.Settings.Default.Save(); Properties.Settings.Default.Save();
@ -1524,7 +1524,7 @@ namespace UWUVCI_AIO_WPF
} }
public bool checkSysKey1(string key) public bool checkSysKey1(string key)
{ {
if (key.GetHashCode() == -1230232583) if (key.GetHashCode() == -1230232583 || (GetDeterministicHashCode(key) == -1230232583))
{ {
Properties.Settings.Default.SysKey1 = key; Properties.Settings.Default.SysKey1 = key;
Properties.Settings.Default.Save(); Properties.Settings.Default.Save();
@ -2377,7 +2377,7 @@ namespace UWUVCI_AIO_WPF
} }
public bool checkcKey(string key) public bool checkcKey(string key)
{ {
if (1274359530 == key.ToLower().GetHashCode()) if (1274359530 == key.ToLower().GetHashCode() || -485504051 == GetDeterministicHashCode(key.ToLower()))
{ {
Settings.Default.Ckey = key.ToLower(); Settings.Default.Ckey = key.ToLower();
ckeys = true; ckeys = true;
@ -2390,20 +2390,12 @@ namespace UWUVCI_AIO_WPF
} }
public bool isCkeySet() public bool isCkeySet()
{ {
if (Settings.Default.Ckey.ToLower().GetHashCode() == 1274359530) ckeys = Settings.Default.Ckey.ToLower().GetHashCode() == 1274359530 || GetDeterministicHashCode(Settings.Default.Ckey.ToLower()) == -485504051;
{ return ckeys;
ckeys = true;
return true;
}
else
{
ckeys = false;
return false;
}
} }
public bool checkKey(string key) 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)); UpdateKeyInFile(key, $@"bin\keys\{GetConsoleOfBase(gbTemp).ToString().ToLower()}.vck", GbTemp, GetConsoleOfBase(gbTemp));
return true; return true;