对于MAAv5.12.1版本后两个字段Start.RunDirectly与Start.OpenEmulatorAfterLaunch的适配
This commit is contained in:
@@ -661,10 +661,20 @@ class MaaManager(QtCore.QThread):
|
|||||||
data["Configurations"]["Default"][
|
data["Configurations"]["Default"][
|
||||||
"MainFunction.PostActions"
|
"MainFunction.PostActions"
|
||||||
] = "12" # 完成后退出MAA和模拟器
|
] = "12" # 完成后退出MAA和模拟器
|
||||||
data["Global"]["Start.RunDirectly"] = "True" # 启动MAA后直接运行
|
|
||||||
|
# v5.1.11版本对于以下字段处理
|
||||||
|
# 启动MAA后直接运行
|
||||||
|
data["Global"]["Start.RunDirectly"] = "True"
|
||||||
|
# 启动MAA后自动开启模拟器
|
||||||
data["Global"][
|
data["Global"][
|
||||||
"Start.OpenEmulatorAfterLaunch"
|
"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:
|
if self.if_silence:
|
||||||
data["Global"]["Start.MinimizeDirectly"] = "True" # 启动MAA后直接最小化
|
data["Global"]["Start.MinimizeDirectly"] = "True" # 启动MAA后直接最小化
|
||||||
@@ -868,8 +878,17 @@ class MaaManager(QtCore.QThread):
|
|||||||
data["Configurations"]["Default"][
|
data["Configurations"]["Default"][
|
||||||
"MainFunction.PostActions"
|
"MainFunction.PostActions"
|
||||||
] = "8" # 完成后退出MAA
|
] = "8" # 完成后退出MAA
|
||||||
|
|
||||||
|
# v5.1.11版本对于以下字段处理
|
||||||
data["Global"]["Start.RunDirectly"] = "True" # 启动MAA后直接运行
|
data["Global"]["Start.RunDirectly"] = "True" # 启动MAA后直接运行
|
||||||
data["Global"]["Start.MinimizeDirectly"] = "True" # 启动MAA后直接最小化
|
data["Global"]["Start.MinimizeDirectly"] = "True" # 启动MAA后直接最小化
|
||||||
|
# v5.1.12版本对以下字段处理
|
||||||
|
# 启动MAA后直接运行
|
||||||
|
data["Configurations"]["Default"]["Start.OpenEmulatorAfterLaunch"] = "True"
|
||||||
|
# 启动MAA后自动开启模拟器
|
||||||
|
data["Configurations"]["Default"]["Start.RunDirectly"] = "True"
|
||||||
|
|
||||||
|
|
||||||
data["Global"]["GUI.UseTray"] = "True" # 显示托盘图标
|
data["Global"]["GUI.UseTray"] = "True" # 显示托盘图标
|
||||||
data["Global"]["GUI.MinimizeToTray"] = "True" # 最小化时隐藏至托盘
|
data["Global"]["GUI.MinimizeToTray"] = "True" # 最小化时隐藏至托盘
|
||||||
# 启动MAA后自动开启模拟器
|
# 启动MAA后自动开启模拟器
|
||||||
@@ -938,11 +957,19 @@ class MaaManager(QtCore.QThread):
|
|||||||
data["Configurations"]["Default"][
|
data["Configurations"]["Default"][
|
||||||
"MainFunction.PostActions"
|
"MainFunction.PostActions"
|
||||||
] = "0" # 完成后无动作
|
] = "0" # 完成后无动作
|
||||||
|
|
||||||
|
# v5.11.1及以下版本的字段处理
|
||||||
data["Global"]["Start.RunDirectly"] = "False" # 启动MAA后直接运行
|
data["Global"]["Start.RunDirectly"] = "False" # 启动MAA后直接运行
|
||||||
data["Global"][
|
data["Global"][
|
||||||
"Start.OpenEmulatorAfterLaunch"
|
"Start.OpenEmulatorAfterLaunch"
|
||||||
] = "False" # 启动MAA后自动开启模拟器
|
] = "False" # 启动MAA后自动开启模拟器
|
||||||
|
|
||||||
|
# v5.1.12版本对以下字段处理
|
||||||
|
# 启动MAA后直接运行
|
||||||
|
data["Configurations"]["Default"]["Start.OpenEmulatorAfterLaunch"] = "False"
|
||||||
|
# 启动MAA后自动开启模拟器
|
||||||
|
data["Configurations"]["Default"]["Start.RunDirectly"] = "False"
|
||||||
|
|
||||||
if self.if_silence:
|
if self.if_silence:
|
||||||
data["Global"][
|
data["Global"][
|
||||||
"Start.MinimizeDirectly"
|
"Start.MinimizeDirectly"
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
"TaskQueue.Mall.IsChecked": "True" #获取信用及购物
|
"TaskQueue.Mall.IsChecked": "True" #获取信用及购物
|
||||||
"TaskQueue.AutoRoguelike.IsChecked": "False" #自动肉鸽
|
"TaskQueue.AutoRoguelike.IsChecked": "False" #自动肉鸽
|
||||||
"TaskQueue.Reclamation.IsChecked": "False" #生息演算
|
"TaskQueue.Reclamation.IsChecked": "False" #生息演算
|
||||||
|
"Start.RunDirectly": "True" #启动MAA后直接运行
|
||||||
|
"Start.OpenEmulatorAfterLaunch": "True" #启动MAA后自动开启模拟器
|
||||||
#刷理智
|
#刷理智
|
||||||
"MainFunction.Stage1": "" #主关卡
|
"MainFunction.Stage1": "" #主关卡
|
||||||
"MainFunction.Stage2": "" #备选关卡1
|
"MainFunction.Stage2": "" #备选关卡1
|
||||||
@@ -37,9 +39,7 @@ G"Timer.Timer1": "False" #时间设置1
|
|||||||
G"VersionUpdate.ScheduledUpdateCheck": "True" #定时检查更新
|
G"VersionUpdate.ScheduledUpdateCheck": "True" #定时检查更新
|
||||||
G"VersionUpdate.AutoDownloadUpdatePackage": "True" #自动下载更新包
|
G"VersionUpdate.AutoDownloadUpdatePackage": "True" #自动下载更新包
|
||||||
G"VersionUpdate.AutoInstallUpdatePackage": "True" #自动安装更新包
|
G"VersionUpdate.AutoInstallUpdatePackage": "True" #自动安装更新包
|
||||||
G"Start.RunDirectly": "True" #启动MAA后直接运行
|
|
||||||
G"Start.MinimizeDirectly": "True" #启动MAA后直接最小化
|
G"Start.MinimizeDirectly": "True" #启动MAA后直接最小化
|
||||||
G"Start.OpenEmulatorAfterLaunch": "True" #启动MAA后自动开启模拟器
|
|
||||||
G"GUI.UseTray": "True" #显示托盘图标
|
G"GUI.UseTray": "True" #显示托盘图标
|
||||||
G"GUI.MinimizeToTray": "False" #最小化时隐藏至托盘
|
G"GUI.MinimizeToTray": "False" #最小化时隐藏至托盘
|
||||||
"Start.EmulatorPath" #模拟器路径
|
"Start.EmulatorPath" #模拟器路径
|
||||||
Reference in New Issue
Block a user