1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-07-06 04:36:33 +08:00
This commit is contained in:
positnuec
2026-07-03 00:43:03 +08:00
42 changed files with 222 additions and 87 deletions

View File

@@ -100,12 +100,17 @@ class EmulatorInstanceBase:
Convert MuMu 12 instance name to instance id.
Example names:
MuMuPlayer-12.0-3
MuMuPlayerGlobal-12.0-0
MuMuPlayer-15.0-0
YXArkNights-12.0-1
Returns:
int: Instance ID, or None if this is not a MuMu 12 instance
"""
res = re.search(r'MuMuPlayer(?:Global)?-12.0-(\d+)', self.name)
if res:
return int(res.group(1))
res = re.search(r'MuMuPlayer(?:Global)?-15.0-(\d+)', self.name)
if res:
return int(res.group(1))
res = re.search(r'YXArkNights-12.0-(\d+)', self.name)