mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Merge branch 'master' of LmeSzinc
This commit is contained in:
@@ -13,6 +13,15 @@ MOD_FUNC_DICT = {
|
||||
MOD_CONFIG_DICT = {}
|
||||
|
||||
|
||||
def get_available_func():
|
||||
return (
|
||||
'Daemon',
|
||||
'OpsiDaemon',
|
||||
'AzurLaneUncensored',
|
||||
'Benchmark',
|
||||
'GameManager',
|
||||
)
|
||||
|
||||
def get_available_mod():
|
||||
return set(MOD_DICT)
|
||||
|
||||
|
||||
@@ -12,7 +12,8 @@ from rich.console import Console, ConsoleRenderable
|
||||
from module.config.utils import filepath_config
|
||||
from module.logger import logger, set_file_logger, set_func_logger
|
||||
from module.submodule.submodule import load_mod
|
||||
from module.submodule.utils import get_available_mod, get_available_mod_func, get_config_mod, get_func_mod, list_mod_instance
|
||||
from module.submodule.utils import get_available_func, get_available_mod, get_available_mod_func, get_config_mod, \
|
||||
get_func_mod, list_mod_instance
|
||||
from module.webui.setting import State
|
||||
|
||||
|
||||
@@ -149,8 +150,8 @@ class ProcessManager:
|
||||
if e is not None:
|
||||
AzurLaneAutoScript.stop_event = e
|
||||
AzurLaneAutoScript(config_name=config_name).loop()
|
||||
elif func == "Daemon":
|
||||
from module.daemon.daemon import AzurLaneDaemon
|
||||
elif func in get_available_func():
|
||||
from alas import AzurLaneAutoScript
|
||||
|
||||
AzurLaneAutoScript(config_name=config_name).run(inflection.underscore(func), skip_first_screenshot=True)
|
||||
elif func in get_available_mod():
|
||||
|
||||
Reference in New Issue
Block a user