feat: support MuMuPlayer12 5.0

This commit is contained in:
2026-07-06 22:40:54 +08:00
parent 6774c2070b
commit 3dc24d56e1
4 changed files with 57 additions and 24 deletions
+7 -2
View File
@@ -119,7 +119,7 @@ class Emulator(EmulatorBase):
return cls.MuMuPlayerX
else:
return cls.MuMuPlayer
if exe == 'mumuplayer.exe':
if exe in ['mumuplayer.exe', 'mumunxmain.exe']:
return cls.MuMuPlayer12
if exe == 'memu.exe':
return cls.MEmuPlayer
@@ -168,6 +168,9 @@ class Emulator(EmulatorBase):
"""
if 'MuMuPlayer.exe' in exe:
return exe.replace('MuMuPlayer.exe', 'MuMuManager.exe')
# MuMuPlayer12 5.0
elif 'MuMuNxMain.exe' in exe:
return exe.replace('MuMuNxMain.exe', 'MuMuManager.exe')
elif 'LDPlayer.exe' in exe:
return exe.replace('LDPlayer.exe', 'ldconsole.exe')
elif 'dnplayer.exe' in exe:
@@ -461,7 +464,9 @@ class EmulatorManager(EmulatorManagerBase):
'leidian9',
'Nemu',
'Nemu9',
'MuMuPlayer-12.0'
'MuMuPlayer',
'MuMuPlayer-12.0',
'MuMu Player 12.0',
'MEmu',
]
for path in known_uninstall_registry_path:
@@ -97,6 +97,7 @@ class PlatformWindows(PlatformBase, EmulatorManager):
self.execute(f'"{exe}" -m {instance.name}')
elif instance == Emulator.MuMuPlayer12:
# MuMuPlayer.exe -v 0
# MuMuNxMain.exe -v 0
if instance.MuMuPlayer12_id is None:
logger.warning(f'Cannot get MuMu instance index from name {instance.name}')
self.execute(f'"{exe}" -v {instance.MuMuPlayer12_id}')