diff --git a/docs/模拟器支持.md b/docs/模拟器支持.md index 19990eb908..7c2839c938 100644 --- a/docs/模拟器支持.md +++ b/docs/模拟器支持.md @@ -26,6 +26,14 @@ 4. 开启 MAA, LinkStart! +- 如果你还需要多开(不使用多开请忽略这步),可以再修改 MAA 检测配置文件的关键字。 + 参照上述步骤,添加 `Bluestacks.Config.Keyword` 字段 + 示例: + + ```jsonc + "Bluestacks.Config.Keyword":"bst.instance.Nougat64.status.adb_port", + ``` + ### ✅ 夜神模拟器 完美支持 diff --git a/src/MeoAsstGui/ViewModels/SettingsViewModel.cs b/src/MeoAsstGui/ViewModels/SettingsViewModel.cs index 0bb5877c96..af5f666703 100644 --- a/src/MeoAsstGui/ViewModels/SettingsViewModel.cs +++ b/src/MeoAsstGui/ViewModels/SettingsViewModel.cs @@ -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"); /// /// 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];