fix: mark nemu_ipc and ldopengl unavailable on non-Windows

This commit is contained in:
2026-07-06 22:40:44 +08:00
parent 5a7428ac9b
commit b9e0f0fc19
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -9,6 +9,7 @@ import cv2
import numpy as np
from module.base.decorator import cached_property
from module.device.env import IS_WINDOWS
from module.device.method.utils import RETRY_TRIES, get_serial_pair, retry_sleep
from module.device.platform import Platform
from module.exception import RequestHumanTakeover
@@ -312,6 +313,8 @@ class LDOpenGL(Platform):
raise RequestHumanTakeover
def ldopengl_available(self) -> bool:
if not IS_WINDOWS:
return False
if not self.is_ldplayer_bluestacks_family:
return False
logger.attr('EmulatorInfo_Emulator', self.config.EmulatorInfo_Emulator)