1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 11:49:26 +08:00

fix: do not control lua hook when game not running

This commit is contained in:
0O0o0oOoO00
2025-09-13 21:49:13 +08:00
parent 9c68c804a4
commit 176ea7412b

View File

@@ -79,6 +79,9 @@ def do_crack_op_on_func(
def do_crack_op(config: AzurLaneConfig, device: Device, ops: Union[Type[CrackOp.Op], List[Type[CrackOp.Op]]]):
if not config.full_config.Hook_HookGeneral_Enable:
return
if not device.app_is_running():
logger.info("Game not running, do not crack")
return
if isinstance(ops, list):
l = ops
else: