1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-15 22:47:22 +08:00

Fix: Unable to get activity level (MAA)

This commit is contained in:
SarContDeli
2023-03-09 11:15:37 +08:00
parent 61547891cf
commit 18669453f3
2 changed files with 17 additions and 7 deletions

View File

@@ -50,11 +50,15 @@ class ArknightsAutoScript(AzurLaneAutoScript):
logger.info(f'MAA安装路径{self.config.MaaEmulator_MaaPath}')
try:
incremental_path = None
incremental_path = [os.path.join(self.config.MaaEmulator_MaaPath, './cache')]
if self.config.MaaEmulator_PackageName in ["YoStarEN", "YoStarJP", "YoStarKR", "txwy"]:
incremental_path = os.path.join(
incremental_path.append(os.path.join(
self.config.MaaEmulator_MaaPath,
'./resource/global/' + self.config.MaaEmulator_PackageName
'./resource/global/' + self.config.MaaEmulator_PackageName)
)
incremental_path.append(os.path.join(
self.config.MaaEmulator_MaaPath,
'./cache/resource/global/' + self.config.MaaEmulator_PackageName)
)
AssistantHandler.load(self.config.MaaEmulator_MaaPath, incremental_path)
except ModuleNotFoundError: