fix.修复HyperV小后门的bug

This commit is contained in:
MistEO
2022-05-31 00:40:23 +08:00
parent 4f40003f8b
commit a3ba8803ea
3 changed files with 7 additions and 6 deletions

View File

@@ -608,6 +608,7 @@ namespace MeoAsstGui
return false;
}
}
settings.TryToSetBlueStacksHyperVAddress();
if (settings.AdbPath.Length == 0)
{
error = "请选择 adb 路径";

View File

@@ -57,7 +57,6 @@ namespace MeoAsstGui
InfrastInit();
ToastPositionInit();
TryToSetBlueStacksHyperVAddress();
}
private List<string> _listTitle = new List<string>();
@@ -1011,6 +1010,8 @@ namespace MeoAsstGui
ConnectConfig = emulators.First();
AdbPath = adapter.GetAdbPathByEmulatorName(ConnectConfig) ?? AdbPath;
UpdateAddressByConfig();
TryToSetBlueStacksHyperVAddress();
return true;
}
@@ -1048,7 +1049,6 @@ namespace MeoAsstGui
{
if (bluestacksConfig.Length == 0)
{
ViewStatusStorage.Set("Bluestacks.Config.Path", "");
return;
}
if (!File.Exists(bluestacksConfig))