mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: Get info after loading DLL, so DLL existence can act as a version check
This commit is contained in:
parent
78a9191936
commit
67ae28ac61
@ -188,9 +188,6 @@ class LDOpenGLImpl:
|
||||
f'ldopengl_dll={ldopengl_dll}, '
|
||||
f'instance_id={instance_id}'
|
||||
)
|
||||
self.console = LDConsole(ld_folder)
|
||||
self.info = self.get_player_info_by_index(instance_id)
|
||||
|
||||
# Load dll
|
||||
try:
|
||||
self.lib = ctypes.WinDLL(ldopengl_dll)
|
||||
@ -206,6 +203,10 @@ class LDOpenGLImpl:
|
||||
f'ldopengl_dll={ldopengl_dll} exist, '
|
||||
f'but cannot be loaded'
|
||||
)
|
||||
# Get info after loading DLL, so DLL existence can act as a version check
|
||||
self.console = LDConsole(ld_folder)
|
||||
self.info = self.get_player_info_by_index(instance_id)
|
||||
|
||||
self.lib.CreateScreenShotInstance.restype = ctypes.c_void_p
|
||||
|
||||
# Get screenshot instance
|
||||
|
||||
Loading…
Reference in New Issue
Block a user