mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 07:02:06 +00:00
fix: enhance nemud_app_keep_alive check for Mac compatibility
This commit is contained in:
@@ -310,8 +310,16 @@ class Connection(ConnectionAttr):
|
||||
Returns:
|
||||
bool: If MuMu12 version >= 3.5.6,
|
||||
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
|
||||
def _nc_server_host_port(self):
|
||||
|
||||
Reference in New Issue
Block a user