mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 14:59:25 +08:00
add: restart game when hook enabled
This commit is contained in:
4
alas.py
4
alas.py
@@ -891,6 +891,10 @@ class AzurLaneAutoScript(AzurLaneAutoScript):
|
||||
)
|
||||
self.scheduler_watcher = watcher
|
||||
|
||||
if self.is_azur and self.config.full_config.Hook_HookGeneral_Enable:
|
||||
logger.info("Hook enabled, do restart")
|
||||
self.restart()
|
||||
|
||||
logger.set_file_logger(self.config_name)
|
||||
logger.info(f'Start scheduler loop: {self.config_name}')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user