refactor: improve logic for nemud player version checks in nemu_ipc.py

This commit is contained in:
2026-07-06 22:40:53 +08:00
parent a2ab36408d
commit fe2998aea6
+8 -4
View File
@@ -505,11 +505,15 @@ class NemuIpc(Platform):
return False return False
if not self.is_mumu_family: if not self.is_mumu_family:
return False return False
# >= 4.0 has no info in getprop
if self.nemud_player_version == '': if self.nemud_player_version == '':
return True # >= 4.0 has no info in getprop
if self.nemud_app_keep_alive == '': # Try initializing nemu_ipc for final check
return False pass
else:
# Having version, probably MuMu6 or MuMu12 version 3.x
if self.nemud_app_keep_alive == '':
# Empty property, probably MuMu6 or MuMu12 version < 3.5.6
return False
try: try:
_ = self.nemu_ipc _ = self.nemu_ipc
except RequestHumanTakeover: except RequestHumanTakeover: