1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 13:17:00 +08:00

Opt: Auto-select the fastest screenshot method

This commit is contained in:
LmeSzinc
2023-02-08 00:13:39 +08:00
parent 6fa94901eb
commit 3d174b19cb
14 changed files with 97 additions and 19 deletions

View File

@@ -96,7 +96,10 @@ class AzurLaneConfig(ConfigUpdater, ManualConfig, GeneratedConfig, ConfigWatcher
# Task to run and bind.
# Task means the name of the function to run in AzurLaneAutoScript class.
self.task: Function
if config_name == "template":
# Template config is used for dev tools
self.is_template_config = config_name == "template"
if self.is_template_config:
# For dev tools
logger.info("Using template config, which is read only")
self.auto_update = False