Skip to content

Commit 16ebd82

Browse files
committed
feature(app settings): add some settings
1 parent f31f9cd commit 16ebd82

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

PCL.Neo.Core/Models/Configuration/Data/AppSettings.cs

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,21 @@ public record AppSettingsData
3131
/// </summary>
3232
public int MinMemoryMb { get; set; } = 512;
3333

34+
/// <summary>
35+
/// 是否启用内存优化
36+
/// </summary>
3437
public bool MemoryOptimize { get; set; } = false;
3538

39+
/// <summary>
40+
/// 当前游戏档案
41+
/// </summary>
42+
public string CurrentGameProfile { get; set; } = "Default";
43+
44+
/// <summary>
45+
/// 当前游戏的名称
46+
/// </summary>
47+
public string CurrentGame { get; set; } = string.Empty;
48+
3649
/// <summary>
3750
/// 版本隔离
3851
/// </summary>
@@ -43,13 +56,25 @@ public record AppSettingsData
4356
/// </summary>
4457
public string GameTitle { get; set; } = string.Empty;
4558

59+
/// <summary>
60+
/// 游戏自定义信息(暂未知作用)
61+
/// </summary>
4662
public string CustomizedInfo { get; set; } = string.Empty;
4763

64+
/// <summary>
65+
/// 启动器可见性
66+
/// </summary>
4867
public LauncherVisibleType LauncherVisible { get; set; } = LauncherVisibleType.None;
4968

69+
/// <summary>
70+
/// 游戏进程优先级
71+
/// </summary>
5072
public ProcessPriorityClass ProcessPriority { get; set; } = ProcessPriorityClass.Normal;
5173

52-
public WindowSizeType WindowSize { get; set; } = WindowSizeType.Default;
74+
/// <summary>
75+
/// 窗口大小
76+
/// </summary>
77+
public WindowSizeType WindowSize { get; set; } = WindowSizeType.Default; // TODO: 修改游戏启动代码,适配这个
5378

5479
/// <summary>
5580
/// 记住的Java路径

PCL.Neo.Core/Models/Configuration/Data/LauncherVisibleType.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ namespace PCL.Neo.Core.Models.Configuration.Data;
22

33
public enum LauncherVisibleType
44
{
5-
None,
6-
CLose,
7-
HideAndClose,
8-
HideAndOpen,
9-
Hide
5+
None, // 无动作
6+
CLose, // 启动后关闭
7+
HideThenClose, // 启动后隐藏,游戏退出后关闭
8+
HideThenOpen, // 启动后隐藏,游戏退出后显示
9+
Hide // 启动后隐藏
1010
}

0 commit comments

Comments
 (0)