mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-29 07:05:30 +08:00
Fix: [ALAS] BlueStacks Air serial auto increase from 127.0.0.1:5555 + 10*n
This commit is contained in:
@@ -318,7 +318,8 @@ class Connection(ConnectionAttr):
|
|||||||
# BlueStacks Air is the Mac version of BlueStacks
|
# BlueStacks Air is the Mac version of BlueStacks
|
||||||
if not IS_MACINTOSH:
|
if not IS_MACINTOSH:
|
||||||
return False
|
return False
|
||||||
if not self.is_ldplayer_bluestacks_family:
|
# 127.0.0.1:5555 + 10*n, assume 32 instances at max
|
||||||
|
if not (5555 <= self.port <= 5875):
|
||||||
return False
|
return False
|
||||||
# [bst.installed_images]: [Tiramisu64]
|
# [bst.installed_images]: [Tiramisu64]
|
||||||
# [bst.instance]: [Tiramisu64]
|
# [bst.instance]: [Tiramisu64]
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ class ConnectionAttr:
|
|||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def is_mumu12_family(self):
|
def is_mumu12_family(self):
|
||||||
# 127.0.0.1:16XXX
|
# 127.0.0.1:16384 + 32*n, assume 32 instances at max
|
||||||
return 16384 <= self.port <= 17408
|
return 16384 <= self.port <= 17408
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
@@ -177,7 +177,8 @@ class ConnectionAttr:
|
|||||||
@cached_property
|
@cached_property
|
||||||
def is_ldplayer_bluestacks_family(self):
|
def is_ldplayer_bluestacks_family(self):
|
||||||
# Note that LDPlayer and BlueStacks have the same serial range
|
# Note that LDPlayer and BlueStacks have the same serial range
|
||||||
return self.serial.startswith('emulator-') or 5555 <= self.port <= 5587
|
# 127.0.0.1:5555 + 2*n, assume 32 instances at max
|
||||||
|
return self.serial.startswith('emulator-') or 5555 <= self.port <= 5619
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def is_nox_family(self):
|
def is_nox_family(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user