Fix: [ALAS] is_mumu_over_version_356 is True on mumu mac

(cherry picked from commit 834ef85cdb1272b04ba952d4d637d084407fa92a)
This commit is contained in:
LmeSzinc 2024-07-12 02:06:17 +08:00
parent 599579aee6
commit a1bc3c94be

View File

@ -312,8 +312,16 @@ class Connection(ConnectionAttr):
Returns: Returns:
bool: If MuMu12 version >= 3.5.6, bool: If MuMu12 version >= 3.5.6,
which has nemud.app_keep_alive and always be a vertical device which has nemud.app_keep_alive and always be a vertical device
MuMu PRO on mac has the same feature
""" """
return self.nemud_app_keep_alive != '' if self.nemud_app_keep_alive != '':
return True
if IS_MACINTOSH:
res = self.adb_getprop('nemud.player_engine')
logger.attr('nemud.player_engine', res)
if 'MACPRO' in res:
return True
return False
@cached_property @cached_property
def _nc_server_host_port(self): def _nc_server_host_port(self):