mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
feat: 新增支持对多开蓝叠 HyperV 模拟器的支持(需要自己修改配置)
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1533
This commit is contained in:
@@ -26,6 +26,14 @@
|
||||
|
||||
4. 开启 MAA, LinkStart!
|
||||
|
||||
- 如果你还需要多开(不使用多开请忽略这步),可以再修改 MAA 检测配置文件的关键字。
|
||||
参照上述步骤,添加 `Bluestacks.Config.Keyword` 字段
|
||||
示例:
|
||||
|
||||
```jsonc
|
||||
"Bluestacks.Config.Keyword":"bst.instance.Nougat64.status.adb_port",
|
||||
```
|
||||
|
||||
### ✅ 夜神模拟器
|
||||
|
||||
完美支持
|
||||
|
||||
@@ -1664,6 +1664,7 @@ namespace MeoAsstGui
|
||||
}
|
||||
|
||||
private readonly string _bluestacksConfig = ViewStatusStorage.Get("Bluestacks.Config.Path", string.Empty);
|
||||
private readonly string _bluestacksKeyWord = ViewStatusStorage.Get("Bluestacks.Config.Keyword", "bst.instance.Nougat64.status.adb_port");
|
||||
|
||||
/// <summary>
|
||||
/// Tries to set Bluestack Hyper V address.
|
||||
@@ -1684,7 +1685,7 @@ namespace MeoAsstGui
|
||||
var all_lines = File.ReadAllLines(_bluestacksConfig);
|
||||
foreach (var line in all_lines)
|
||||
{
|
||||
if (line.StartsWith("bst.instance.Nougat64.status.adb_port"))
|
||||
if (line.StartsWith(_bluestacksKeyWord))
|
||||
{
|
||||
var sp = line.Split('"');
|
||||
ConnectAddress = "127.0.0.1:" + sp[1];
|
||||
|
||||
Reference in New Issue
Block a user