mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
fix: 修复手动停止时回调消息错误,新增TaskChainStopped回调消息
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/2442
This commit is contained in:
@@ -46,13 +46,14 @@ class Asst:
|
||||
Asst.__lib = ctypes.CDLL(str(Asst.__libpath))
|
||||
Asst.__set_lib_properties()
|
||||
|
||||
ret: bool = True;
|
||||
ret: bool = True
|
||||
if user_dir:
|
||||
ret &= Asst.__lib.AsstSetUserDir(str(user_dir).encode('utf-8'))
|
||||
|
||||
ret &= Asst.__lib.AsstLoadResource(str(path).encode('utf-8'))
|
||||
if incremental_path:
|
||||
ret &= Asst.__lib.AsstLoadResource(str(incremental_path).encode('utf-8'))
|
||||
ret &= Asst.__lib.AsstLoadResource(
|
||||
str(incremental_path).encode('utf-8'))
|
||||
|
||||
return ret
|
||||
|
||||
@@ -226,6 +227,8 @@ class Message(Enum):
|
||||
|
||||
TaskChainExtraInfo = auto()
|
||||
|
||||
TaskChainStopped = auto()
|
||||
|
||||
SubTaskError = 20000
|
||||
|
||||
SubTaskStart = auto()
|
||||
@@ -233,3 +236,5 @@ class Message(Enum):
|
||||
SubTaskCompleted = auto()
|
||||
|
||||
SubTaskExtraInfo = auto()
|
||||
|
||||
SubTaskStopped = auto()
|
||||
|
||||
Reference in New Issue
Block a user