mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Chore: [ALAS] Directly mark nemuipc and ldopengl unavailable on non-Windows
This commit is contained in:
parent
38da2aba17
commit
546f25d646
@ -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)
|
||||
|
||||
@ -12,6 +12,7 @@ from module.base.decorator import cached_property, del_cached_property, has_cach
|
||||
from module.base.timer import Timer
|
||||
from module.base.utils import ensure_time
|
||||
from module.config.utils import deep_get
|
||||
from module.device.env import IS_WINDOWS
|
||||
from module.device.method.minitouch import insert_swipe, random_rectangle_point
|
||||
from module.device.method.pool import JobTimeout, WORKER_POOL
|
||||
from module.device.method.utils import RETRY_TRIES, retry_sleep
|
||||
@ -500,6 +501,8 @@ class NemuIpc(Platform):
|
||||
raise RequestHumanTakeover
|
||||
|
||||
def nemu_ipc_available(self) -> bool:
|
||||
if not IS_WINDOWS:
|
||||
return False
|
||||
if not self.is_mumu_family:
|
||||
return False
|
||||
# >= 4.0 has no info in getprop
|
||||
|
||||
Loading…
Reference in New Issue
Block a user