From b40fa35622a0a9670d3e53a35da1f3e488ace356 Mon Sep 17 00:00:00 2001 From: heziziziscool Date: Wed, 22 Jan 2025 17:22:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E4=BA=8EMAAv5.12.1=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=90=8E=E4=B8=A4=E4=B8=AA=E5=AD=97=E6=AE=B5`Start.RunDirectly?= =?UTF-8?q?`=E4=B8=8E`Start.OpenEmulatorAfterLaunch`=E7=9A=84=E9=80=82?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/MAA.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/app/models/MAA.py b/app/models/MAA.py index e268645..6894414 100644 --- a/app/models/MAA.py +++ b/app/models/MAA.py @@ -33,7 +33,6 @@ import subprocess import shutil import time from pathlib import Path - from app import AppConfig @@ -658,13 +657,23 @@ class MaaManager(QtCore.QThread): data["Current"] = "Default" # 切换配置 for i in range(1, 9): data["Global"][f"Timer.Timer{i}"] = "False" # 时间设置 + # 完成后退出MAA和模拟器 data["Configurations"]["Default"][ "MainFunction.PostActions" - ] = "12" # 完成后退出MAA和模拟器 - data["Global"]["Start.RunDirectly"] = "True" # 启动MAA后直接运行 + ] = "12" + # v5.1.11版本对于以下字段处理 + # 启动MAA后直接运行 + data["Global"]["Start.RunDirectly"] = "True" + # 启动MAA后自动开启模拟器 data["Global"][ "Start.OpenEmulatorAfterLaunch" - ] = "True" # 启动MAA后自动开启模拟器 + ] = "True" + # v5.1.12版本对以下字段处理 + # 启动MAA后直接运行 + data["Configurations"]["Default"]["Start.OpenEmulatorAfterLaunch"] = "True" + # 启动MAA后自动开启模拟器 + data["Configurations"]["Default"]["Start.RunDirectly"] = "True" + if self.if_silence: data["Global"]["Start.MinimizeDirectly"] = "True" # 启动MAA后直接最小化