feat: Add OpenXR setting, track default values, and optimize config file writing by skipping default entries.

This commit is contained in:
xkeyC
2025-12-12 10:06:21 +08:00
parent 3fd020b8b0
commit 138be64c0d
11 changed files with 417 additions and 337 deletions

View File

@@ -1697,6 +1697,12 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage(
"Model object detail, affects LOD, etc.",
),
"performance_json_text_openxr": MessageLookupByLibrary.simpleMessage(
"Enable OpenXR",
),
"performance_json_text_openxr_info": MessageLookupByLibrary.simpleMessage(
"Connect OpenXR-compatible headsets, use Numpad / to switch between VR and widescreen theater mode after game launch",
),
"performance_json_text_particles": MessageLookupByLibrary.simpleMessage(
"Particle Detail",
),

View File

@@ -1410,12 +1410,18 @@ class MessageLookup extends MessageLookupByLibrary {
"动态模糊",
),
"performance_json_text_motion_blur_info":
MessageLookupByLibrary.simpleMessage("开启以提高运动感关闭提升观感"),
MessageLookupByLibrary.simpleMessage("开启以提高运动感,关闭提升观感"),
"performance_json_text_object_detail": MessageLookupByLibrary.simpleMessage(
"对象细节",
),
"performance_json_text_object_detail_info":
MessageLookupByLibrary.simpleMessage("模型对象细节影响LOD等.."),
"performance_json_text_openxr": MessageLookupByLibrary.simpleMessage(
"启用 OpenXR",
),
"performance_json_text_openxr_info": MessageLookupByLibrary.simpleMessage(
"连接与 OpenXR 兼容的头显,启动游戏后,使用数字小键盘 / 切换 VR 与 宽屏剧院模式",
),
"performance_json_text_particles": MessageLookupByLibrary.simpleMessage(
"粒子细节",
),

View File

@@ -4576,6 +4576,26 @@ class S {
);
}
/// `Enable OpenXR`
String get performance_json_text_openxr {
return Intl.message(
'Enable OpenXR',
name: 'performance_json_text_openxr',
desc: '',
args: [],
);
}
/// `Connect OpenXR-compatible headsets, use Numpad / to switch between VR and widescreen theater mode after game launch`
String get performance_json_text_openxr_info {
return Intl.message(
'Connect OpenXR-compatible headsets, use Numpad / to switch between VR and widescreen theater mode after game launch',
name: 'performance_json_text_openxr_info',
desc: '',
args: [],
);
}
/// `Set FOV`
String get performance_json_text_fov {
return Intl.message(