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