mirror of
https://github.com/sui-feng-cb/AzurLaneAutoScript1.git
synced 2026-07-06 04:36:33 +08:00
Fix: [ALAS] get MuMuPlayer12_id from mumu15
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user