fix: add fallback of nemu_ipc and ldopengl if not running on windows

This commit is contained in:
2026-07-06 22:40:59 +08:00
parent 3d32669431
commit 04083cb309
+4
View File
@@ -153,6 +153,10 @@ class Device(Screenshot, Control, AppControl):
if not (self.is_emulator and self.is_ldplayer_bluestacks_family):
logger.warning('ScreenshotMethod ldopengl is available on LD Player only, fallback to auto')
self.config.Emulator_ScreenshotMethod = 'auto'
if not IS_WINDOWS and self.config.Emulator_ScreenshotMethod in ['nemu_ipc', 'ldopengl']:
logger.warning(f'ScreenshotMethod {self.config.Emulator_ScreenshotMethod} is available on Windows only, '
f'fallback to auto')
self.config.Emulator_ScreenshotMethod = 'auto'
def screenshot(self):
"""