From 04083cb309efeebaa0df71f3bd8961a70413b199 Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Mon, 6 Jul 2026 19:42:46 +0800 Subject: [PATCH] fix: add fallback of nemu_ipc and ldopengl if not running on windows --- module/device/device.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/device/device.py b/module/device/device.py index d884e32..e7602bb 100644 --- a/module/device/device.py +++ b/module/device/device.py @@ -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): """