mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: [ALAS] Predict MuMu12 serial from instance id if it was missing in vbox file
This commit is contained in:
parent
cd49c9b9c4
commit
b8c89285c1
@ -307,12 +307,15 @@ class Emulator(EmulatorBase):
|
||||
path=self.path,
|
||||
)
|
||||
# Fix for MuMu12 v4.0.4, default instance of which has no forward record in vbox config
|
||||
elif name == 'MuMuPlayer-12.0-0':
|
||||
yield EmulatorInstance(
|
||||
serial='127.0.0.1:16384',
|
||||
else:
|
||||
instance = EmulatorInstance(
|
||||
serial=serial,
|
||||
name=name,
|
||||
path=self.path,
|
||||
)
|
||||
if instance.MuMuPlayer12_id:
|
||||
instance.serial = f'127.0.0.1:{16384 + 32 * instance.MuMuPlayer12_id}'
|
||||
yield instance
|
||||
elif self == Emulator.MEmuPlayer:
|
||||
# ./MemuHyperv VMs/{name}/{name}.memu
|
||||
for folder in self.list_folder('./MemuHyperv VMs', is_dir=True):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user