mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-10 05:34:13 +00:00
Gets different bases for the emulation/virtualization crowd
This commit is contained in:
parent
4db41f7017
commit
694ae6cf51
1 changed files with 7 additions and 3 deletions
|
@ -1803,9 +1803,12 @@ namespace UWUVCI_AIO_WPF
|
|||
string basePath = $@"bin\bases\";
|
||||
Directory.SetCurrentDirectory(basePath);
|
||||
using (var client = new WebClient())
|
||||
|
||||
{
|
||||
var fixname = name.Split('\\');
|
||||
|
||||
if (Injection.IsRunningInVirtualMachine() || Injection.IsRunningUnderWineOrSimilar())
|
||||
name = "Net6/" + name;
|
||||
|
||||
client.DownloadFile(getDownloadLink(name, false), fixname[fixname.Length - 1]);
|
||||
}
|
||||
}
|
||||
|
@ -2395,7 +2398,8 @@ namespace UWUVCI_AIO_WPF
|
|||
}
|
||||
public bool checkKey(string key)
|
||||
{
|
||||
if (GbTemp.KeyHash == key.ToLower().GetHashCode() || GbTemp.KeyHash == GetDeterministicHashCode(key.ToLower()))
|
||||
var hash = GetDeterministicHashCode(key.ToLower());
|
||||
if (GbTemp.KeyHash == hash)
|
||||
{
|
||||
UpdateKeyInFile(key, $@"bin\keys\{GetConsoleOfBase(gbTemp).ToString().ToLower()}.vck", GbTemp, GetConsoleOfBase(gbTemp));
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue