1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-29 15:07:14 +08:00

Fix: Update ldopengl minimal version

Signed-off-by: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com>
This commit is contained in:
LmeSzinc
2024-09-23 19:04:35 +08:00
parent 4852d66be0
commit f95f51b165

View File

@@ -196,7 +196,7 @@ class LDOpenGLImpl:
if not os.path.exists(ldopengl_dll): if not os.path.exists(ldopengl_dll):
raise LDOpenGLIncompatible( raise LDOpenGLIncompatible(
f'ldopengl_dll={ldopengl_dll} does not exist, ' f'ldopengl_dll={ldopengl_dll} does not exist, '
f'ldopengl requires LDPlayer >= 9.0.75, please check your version' f'ldopengl requires LDPlayer >= 9.0.78, please check your version'
) )
else: else:
raise LDOpenGLIncompatible( raise LDOpenGLIncompatible(
@@ -264,6 +264,8 @@ class LDOpenGLImpl:
int: instance_id, or None if failed to predict int: instance_id, or None if failed to predict
""" """
serial, _ = get_serial_pair(serial) serial, _ = get_serial_pair(serial)
if serial is None:
return None
try: try:
port = int(serial.split(':')[1]) port = int(serial.split(':')[1])
except (IndexError, ValueError): except (IndexError, ValueError):