mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 09:48:20 +08:00
Opt: Add start/stop LDPlayer,NoxPlayer,BlueStack4,MEmuPlayer support. (#3867)
* Opt: Add start/stop LDPlayer,NoxPlayer,BlueStack4,MEmuPlayer support. * Upd: fixed. * fix * Upd: Bug fix. * Upd: fix * Upd: Add single_to_console method. * Upd: fix texts. --------- Co-authored-by: LmeSzinc <lmeszincsales@gmail.com>
This commit is contained in:
@@ -114,6 +114,22 @@ class EmulatorInstanceBase:
|
||||
|
||||
return None
|
||||
|
||||
@cached_property
|
||||
def LDPlayer_id(self):
|
||||
"""
|
||||
Convert LDPlayer instance name to instance id.
|
||||
Example names:
|
||||
leidian0
|
||||
leidian1
|
||||
|
||||
Returns:
|
||||
int: Instance ID, or None if this is not a LDPlayer instance
|
||||
"""
|
||||
res = re.search(r'leidian(\d+)', self.name)
|
||||
if res:
|
||||
return int(res.group(1))
|
||||
|
||||
return None
|
||||
|
||||
class EmulatorBase:
|
||||
# Values here must match those in argument.yaml EmulatorInfo.Emulator.option
|
||||
|
||||
Reference in New Issue
Block a user