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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user