mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Merge branch 'master' of https://github.com/LmeSzinc/AzurLaneAutoScript
This commit is contained in:
@@ -196,7 +196,7 @@ class LDOpenGLImpl:
|
||||
if not os.path.exists(ldopengl_dll):
|
||||
raise LDOpenGLIncompatible(
|
||||
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:
|
||||
raise LDOpenGLIncompatible(
|
||||
@@ -264,6 +264,8 @@ class LDOpenGLImpl:
|
||||
int: instance_id, or None if failed to predict
|
||||
"""
|
||||
serial, _ = get_serial_pair(serial)
|
||||
if serial is None:
|
||||
return None
|
||||
try:
|
||||
port = int(serial.split(':')[1])
|
||||
except (IndexError, ValueError):
|
||||
|
||||
Reference in New Issue
Block a user