-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathConfig.cs
More file actions
621 lines (528 loc) · 29.3 KB
/
Config.cs
File metadata and controls
621 lines (528 loc) · 29.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
using PCL.Core.App.Configuration;
namespace PCL.Core.App;
/// <summary>
/// 全局配置类。
/// </summary>
// ReSharper disable InconsistentNaming
public static partial class Config
{
/// <summary>
/// 系统配置。
/// </summary>
[ConfigGroup("System")] partial class SystemConfigGroup
{
// /// <summary>
// /// 系统缓存目录。
// /// </summary>
// [ConfigItem<string>("SystemSystemCache", "")] public partial string CacheDirectory { get; set; }
/// <summary>
/// 禁用硬件加速。
/// </summary>
[ConfigItem<bool>("SystemDisableHardwareAcceleration", false)] public partial bool DisableHardwareAcceleration { get; set; }
/// <summary>
/// 遥测。
/// </summary>
[ConfigItem<bool>("SystemTelemetry", false)] public partial bool Telemetry { get; set; }
/// <summary>
/// 实时日志最大行数。
/// </summary>
[ConfigItem<int>("SystemMaxLog", 13)] public partial int MaxGameLog { get; set; }
/// <summary>
/// 动画帧率上限。
/// </summary>
[ConfigItem<int>("UiAniFPS", 59)] public partial int AnimationFpsLimit { get; set; }
}
/// <summary>
/// 网络配置。
/// </summary>
[ConfigGroup("Network")] partial class NetworkConfigGroup
{
[ConfigItem<bool>("SystemNetEnableDoH", true)] public partial bool EnableDoH { get; set; }
[ConfigGroup("HttpProxy")] partial class HttpProxyConfigGroup
{
[ConfigItem<string>("SystemHttpProxy", "", ConfigSource.SharedEncrypt)] public partial string CustomAddress { get; set; }
[ConfigItem<int>("SystemHttpProxyType", 1)] public partial int Type { get; set; }
[ConfigItem<string>("SystemHttpProxyCustomUsername", "")] public partial string CustomUsername { get; set; }
[ConfigItem<string>("SystemHttpProxyCustomPassword", "")] public partial string CustomPassword { get; set; }
}
}
/// <summary>
/// 调试配置
/// </summary>
[ConfigGroup("Debug")] partial class DebugConfigGroup
{
[ConfigItem<bool>("SystemDebugMode", false)] public partial bool Enabled { get; set; }
[ConfigItem<int>("SystemDebugAnim", 9)] public partial int AnimationSpeed { get; set; }
[ConfigItem<bool>("SystemDebugDelay", false)] public partial bool AddRandomDelay { get; set; }
[ConfigItem<bool>("SystemDebugSkipCopy", false)] public partial bool DontCopy { get; set; }
[ConfigItem<bool>("SystemDebugAllowRestrictedFeature", false)] public partial bool AllowRestrictedFeature { get; set; }
}
/// <summary>
/// 下载配置。
/// </summary>
[ConfigGroup("Download")] partial class DownloadConfigGroup
{
[ConfigItem<int>("ToolDownloadThread", 63)] public partial int ThreadLimit { get; set; }
[ConfigItem<int>("ToolDownloadSpeed", 42)] public partial int SpeedLimit { get; set; }
[ConfigItem<int>("ToolDownloadSource", 1)] public partial int FileSource { get; set; }
[ConfigItem<int>("ToolDownloadVersion", 1)] public partial int VersionListSource { get; set; }
[ConfigItem<bool>("ToolDownloadAutoSelectVersion", true)] public partial bool AutoSelectInstance { get; set; }
[ConfigItem<bool>("ToolFixAuthlib", true)] public partial bool FixAuthLib { get; set; }
/// <summary>
/// 第三方资源配置。
/// </summary>
[ConfigGroup("Comp")] partial class CompConfigGroup
{
[ConfigItem<int>("ToolDownloadTranslate", 0)] public partial int NameFormatV1 { get; set; }
[ConfigItem<int>("ToolDownloadTranslateV2", 1)] public partial int NameFormatV2 { get; set; }
[ConfigItem<bool>("ToolDownloadIgnoreQuilt", false)] public partial bool IgnoreQuilt { get; set; }
[ConfigItem<bool>("ToolDownloadAutoInstallDependencies", true)] public partial bool AutoInstallDependencies { get; set; }
[ConfigItem<bool>("ToolDownloadClipboard", false)] public partial bool ReadClipboard { get; set; }
[ConfigItem<int>("ToolDownloadMod", 1)] public partial int CompSourceSolution { get; set; }
[ConfigItem<int>("ToolModLocalNameStyle", 0)] public partial int UiCompNameSolution { get; set; }
}
}
/// <summary>
/// 工具配置。
/// </summary>
[ConfigGroup("Tool")] partial class ToolConfigGroup
{
[ConfigItem<bool>("ToolHelpChinese", true)] public partial bool AutoChangeLanguage { get; set; }
// [ConfigItem<int>("ToolUpdateAlpha", 0, ConfigSource.SharedEncrypt)] public partial int Alpha { get; set; }
[ConfigItem<bool>("ToolUpdateRelease", false)] public partial bool ReleaseNotification { get; set; }
[ConfigItem<bool>("ToolUpdateSnapshot", false)] public partial bool SnapshotNotification { get; set; }
}
/// <summary>
/// 更新配置。
/// </summary>
[ConfigGroup("Update")] partial class UpdateConfigGroup
{
/// <summary>
/// 自动更新行为。
/// </summary>
[ConfigItem<LauncherAutoUpdateBehavior>("SystemSystemUpdate", LauncherAutoUpdateBehavior.DownloadAndAnnounce, ConfigSource.Local)] public partial LauncherAutoUpdateBehavior UpdateMode { get; set; }
/// <summary>
/// 更新分支。
/// </summary>
[ConfigItem<UpdateChannel>("SystemUpdateChannel", UpdateChannel.Release, ConfigSource.Local)] public partial UpdateChannel UpdateChannel { get; set; }
/// <summary>
/// Mirror 酱 CDK。
/// </summary>
[ConfigItem<string>("SystemMirrorChyanKey", "", ConfigSource.SharedEncrypt)] public partial string MirrorChyanKey { get; set; }
}
/// <summary>
/// 联机大厅配置。
/// </summary>
[ConfigGroup("Link")] partial class LinkConfigGroup
{
/// <summary>
/// 大厅用户名。
/// </summary>
[ConfigItem<string>("LinkUsername", "")] public partial string Username { get; set; }
/// <summary>
/// 中继方式。
/// </summary>
[ConfigItem<LinkRelayBehavior>("LinkRelayType", LinkRelayBehavior.Default)] public partial LinkRelayBehavior RelayType { get; set; }
/// <summary>
/// 中继服务器类型 (社区/自有)。
/// </summary>
[ConfigItem<int>("LinkServerType", 1)] public partial int ServerType { get; set; }
/// <summary>
/// 延迟优先模式。
/// </summary>
[ConfigItem<bool>("LinkLatencyFirstMode", true)] public partial bool UseLatencyFirstMode { get; set; }
/// <summary>
/// 自定义中继服务器。
/// </summary>
[ConfigItem<string>("LinkRelayServer", "")] public partial string CustomRelayServer { get; set; }
/// <summary>
/// 传输协议优先策略。
/// </summary>
[ConfigItem<LinkProtocolPreference>("LinkProtocolPreference", LinkProtocolPreference.Tcp)] public partial LinkProtocolPreference ProtocolPreference { get; set; }
/// <summary>
/// 尝试使用端口猜测打通对称性 NAT。
/// </summary>
[ConfigItem<bool>("LinkTryPunchSym", true)] public partial bool TryPunchSym { get; set; }
/// <summary>
/// 启用 IPv6。
/// </summary>
[ConfigItem<bool>("LinkEnableIPv6", true)] public partial bool EnableIPv6 { get; set; }
/// <summary>
/// 在日志中输出 Cli 信息以用于调试。
/// </summary>
[ConfigItem<bool>("LinkEnableCliOutput", false)] public partial bool EnableCliOutput { get; set; }
}
/// <summary>
/// 个性化配置。
/// </summary>
[ConfigGroup("Preference")] partial class PreferenceConfigGroup
{
/// <summary>
/// 启动时显示 Logo。
/// </summary>
[ConfigItem<bool>("UiLauncherLogo", true, ConfigSource.Local)] public partial bool ShowStartupLogo { get; set; }
/// <summary>
/// 锁定窗口大小。
/// </summary>
[ConfigItem<bool>("UiLockWindowSize", false)] public partial bool LockWindowSize { get; set; }
/// <summary>
/// 在启动游戏时显示你知道吗。
/// </summary>
[ConfigItem<bool>("UiShowLaunchingHint", true, ConfigSource.Local)] public partial bool ShowLaunchingHint { get; set; }
/// <summary>
/// 标题内容类型。
/// </summary>
[ConfigItem<LauncherTitleType>("UiLogoType", LauncherTitleType.Default, ConfigSource.Local)] public partial LauncherTitleType WindowTitleType { get; set; }
/// <summary>
/// 窗口标题文本。
/// </summary>
[ConfigItem<string>("UiLogoText", "", ConfigSource.Local)] public partial string WindowTitleCustomText { get; set; }
/// <summary>
/// 导航栏居左。
/// </summary>
[ConfigItem<bool>("UiLogoLeft", false, ConfigSource.Local)] public partial bool TopBarLeftAlign { get; set; }
/// <summary>
/// 全局字体。
/// </summary>
[ConfigItem<string>("UiFont", "", ConfigSource.Local)] public partial string Font { get; set; }
/// <summary>
/// MOTD 字体。
/// </summary>
[ConfigItem<string>("UiMotdFont", "", ConfigSource.Local)] public partial string MotdFont { get; set; }
/// <summary>
/// 详细实例分类。
/// </summary>
[ConfigItem<bool>("DetailedInstanceClassification", false, ConfigSource.Local)] public partial bool DetailedInstanceClassification { get; set; }
/// <summary>
/// 界面主题配置。
/// </summary>
[ConfigGroup("Theme")] partial class ThemeConfigGroup
{
/// <summary>
/// 配色主题模式。
/// </summary>
[ConfigItem<ColorMode>("UiDarkMode", ColorMode.System)] public partial ColorMode ColorMode { get; set; }
/// <summary>
/// 暗色配色主题。
/// </summary>
[ConfigItem<ColorTheme>("UiDarkColor", ColorTheme.CatBlue)] public partial ColorTheme DarkColor { get; set; }
/// <summary>
/// 亮色配色主题。
/// </summary>
[ConfigItem<ColorTheme>("UiLightColor", ColorTheme.CatBlue)] public partial ColorTheme LightColor { get; set; }
/// <summary>
/// 窗口透明度。
/// </summary>
[ConfigItem<int>("UiLauncherTransparent", 600, ConfigSource.Local)] public partial int WindowOpacity { get; set; }
/// <summary>
/// 自定义主题:色相 (H)。
/// </summary>
[ConfigItem<int>("UiLauncherHue", 180, ConfigSource.Local)] public partial int WindowHue { get; set; }
/// <summary>
/// 自定义主题:饱和度 (S)。
/// </summary>
[ConfigItem<int>("UiLauncherSat", 80, ConfigSource.Local)] public partial int WindowSat { get; set; }
/// <summary>
/// 自定义主题:明度 (L)。
/// </summary>
[ConfigItem<int>("UiLauncherLight", 20, ConfigSource.Local)] public partial int WindowLight { get; set; }
/// <summary>
/// 自定义主题:色相渐变。
/// </summary>
[ConfigItem<int>("UiLauncherDelta", 90, ConfigSource.Local)] public partial int WindowDelta { get; set; }
/// <summary>
/// 传说中的主题选择,但是没卵用。
/// </summary>
[ConfigItem<int>("UiLauncherTheme", 0, ConfigSource.Local)] public partial int ThemeSelected { get; set; }
}
/// <summary>
/// 背景内容。
/// </summary>
[ConfigGroup("Background")] partial class BackgroundConfigGroup
{
/// <summary>
/// 彩色底部填充。
/// </summary>
[ConfigItem<bool>("UiBackgroundColorful", true, ConfigSource.Local)] public partial bool BackgroundColorful { get; set; }
/// <summary>
/// 透明度。
/// </summary>
[ConfigItem<int>("UiBackgroundOpacity", 1000, ConfigSource.Local)] public partial int WallpaperOpacity { get; set; }
/// <summary>
/// 旋转。
/// </summary>
[ConfigItem<int>("UiBackgroundCarousel", 1000, ConfigSource.Local)] public partial int WallpaperCarousel { get; set; }
/// <summary>
/// 模糊遮罩。
/// </summary>
[ConfigItem<int>("UiBackgroundBlur", 0, ConfigSource.Local)] public partial int WallpaperBlurRadius { get; set; }
/// <summary>
/// 内容裁剪模式。
/// </summary>
[ConfigItem<int>("UiBackgroundSuit", 0, ConfigSource.Local)] public partial int WallpaperSuitMode { get; set; }
/// <summary>
/// 视频自动暂停。
/// </summary>
[ConfigItem<bool>("UiAutoPauseVideo", true, ConfigSource.Local)] public partial bool AutoPauseVideo { get; set; }
}
/// <summary>
/// 高级材质。
/// </summary>
[ConfigGroup("Blur")] partial class BlurConfigGroup
{
/// <summary>
/// 是否启用。
/// </summary>
[ConfigItem<bool>("UiBlur", false, ConfigSource.Local)] public partial bool IsEnabled { get; set; }
/// <summary>
/// 模糊半径。
/// </summary>
[ConfigItem<int>("UiBlurValue", 16, ConfigSource.Local)] public partial int Radius { get; set; }
/// <summary>
/// 采样率。
/// </summary>
[ConfigItem<int>("UiBlurSamplingRate", 70, ConfigSource.Local)] public partial int SamplingRate { get; set; }
/// <summary>
/// 模糊方法。
/// </summary>
[ConfigItem<int>("UiBlurType", 0, ConfigSource.Local)] public partial int KernelType { get; set; }
}
/// <summary>
/// 自定义主页。
/// </summary>
[ConfigGroup("Homepage")] partial class HomepageConfigGroup
{
/// <summary>
/// 主页来源类型。
/// </summary>
[ConfigItem<int>("UiCustomType", 0, ConfigSource.Local)] public partial int Type { get; set; }
/// <summary>
/// 预设选项。
/// </summary>
[ConfigItem<int>("UiCustomPreset", 14, ConfigSource.Local)] public partial int SelectedPreset { get; set; }
/// <summary>
/// 自定义 URL。
/// </summary>
[ConfigItem<string>("UiCustomNet", "", ConfigSource.Local)] public partial string CustomUrl { get; set; }
}
/// <summary>
/// 背景音乐。
/// </summary>
[ConfigGroup("Music")] partial class MusicConfigGroup
{
/// <summary>
/// 音量。
/// </summary>
[ConfigItem<int>("UiMusicVolume", 500, ConfigSource.Local)] public partial int Volume { get; set; }
/// <summary>
/// 启动游戏后自动暂停。
/// </summary>
[ConfigItem<bool>("UiMusicStop", false, ConfigSource.Local)] public partial bool StopInGame { get; set; }
/// <summary>
/// 启动游戏后自动开始播放。
/// </summary>
[ConfigItem<bool>("UiMusicStart", false, ConfigSource.Local)] public partial bool StartInGame { get; set; }
/// <summary>
/// 自动开始播放。
/// </summary>
[ConfigItem<bool>("UiMusicAuto", true, ConfigSource.Local)] public partial bool StartOnStartup { get; set; }
/// <summary>
/// 随机播放。
/// </summary>
[ConfigItem<bool>("UiMusicRandom", true, ConfigSource.Local)] public partial bool ShufflePlayback { get; set; }
/// <summary>
/// 启用 SMTC。
/// </summary>
[ConfigItem<bool>("UiMusicSMTC", true, ConfigSource.Local)] public partial bool EnableSMTC { get; set; }
}
/// <summary>
/// 功能隐藏。
/// </summary>
[ConfigGroup("Hide")]
partial class HideConfigGroup
{
// 主页面
[ConfigItem<bool>("UiHiddenPageDownload", false, ConfigSource.Local)] public partial bool PageDownload { get; set; }
[ConfigItem<bool>("UiHiddenPageSetup", false, ConfigSource.Local)] public partial bool PageSetup { get; set; }
[ConfigItem<bool>("UiHiddenPageTools", false, ConfigSource.Local)] public partial bool PageTools { get; set; }
// 子页面 设置
[ConfigItem<bool>("UiHiddenSetupLaunch", false, ConfigSource.Local)] public partial bool SetupLaunch { get; set; }
[ConfigItem<bool>("UiHiddenSetupUi", false, ConfigSource.Local)] public partial bool SetupUi { get; set; }
[ConfigItem<bool>("UiHiddenSetupLauncherMisc", false, ConfigSource.Local)] public partial bool SetupLauncherMisc { get; set; }
[ConfigItem<bool>("UiHiddenSetupGameManage", false, ConfigSource.Local)] public partial bool SetupGameManage { get; set; }
[ConfigItem<bool>("UiHiddenSetupJava", false, ConfigSource.Local)] public partial bool SetupJava { get; set; }
[ConfigItem<bool>("UiHiddenSetupUpdate", false, ConfigSource.Local)] public partial bool SetupUpdate { get; set; }
[ConfigItem<bool>("UiHiddenSetupGameLink", false, ConfigSource.Local)] public partial bool SetupGameLink { get; set; } // 新增
[ConfigItem<bool>("UiHiddenSetupAbout", false, ConfigSource.Local)] public partial bool SetupAbout { get; set; } // 修正名称
[ConfigItem<bool>("UiHiddenSetupFeedback", false, ConfigSource.Local)] public partial bool SetupFeedback { get; set; } // 修正名称
[ConfigItem<bool>("UiHiddenSetupLog", false, ConfigSource.Local)] public partial bool SetupLog { get; set; } // 修正名称
// 子页面 工具
[ConfigItem<bool>("UiHiddenToolsGameLink", false, ConfigSource.Local)] public partial bool ToolsGameLink { get; set; } // 新增
[ConfigItem<bool>("UiHiddenToolsHelp", false, ConfigSource.Local)] public partial bool ToolsHelp { get; set; } // 新增
[ConfigItem<bool>("UiHiddenToolsTest", false, ConfigSource.Local)] public partial bool ToolsTest { get; set; } // 新增
// 子页面 实例设置
[ConfigItem<bool>("UiHiddenVersionEdit", false, ConfigSource.Local)] public partial bool InstanceEdit { get; set; }
[ConfigItem<bool>("UiHiddenVersionExport", false, ConfigSource.Local)] public partial bool InstanceExport { get; set; }
[ConfigItem<bool>("UiHiddenVersionSave", false, ConfigSource.Local)] public partial bool InstanceSave { get; set; }
[ConfigItem<bool>("UiHiddenVersionScreenshot", false, ConfigSource.Local)] public partial bool InstanceScreenshot { get; set; }
[ConfigItem<bool>("UiHiddenVersionMod", false, ConfigSource.Local)] public partial bool InstanceMod { get; set; }
[ConfigItem<bool>("UiHiddenVersionResourcePack", false, ConfigSource.Local)] public partial bool InstanceResourcePack { get; set; }
[ConfigItem<bool>("UiHiddenVersionShader", false, ConfigSource.Local)] public partial bool InstanceShader { get; set; }
[ConfigItem<bool>("UiHiddenVersionSchematic", false, ConfigSource.Local)] public partial bool InstanceSchematic { get; set; }
[ConfigItem<bool>("UiHiddenVersionServer", false, ConfigSource.Local)] public partial bool InstanceServer { get; set; }
// 特定功能
[ConfigItem<bool>("UiHiddenFunctionSelect", false, ConfigSource.Local)] public partial bool FunctionSelect { get; set; }
[ConfigItem<bool>("UiHiddenFunctionModUpdate", false, ConfigSource.Local)] public partial bool FunctionModUpdate { get; set; }
[ConfigItem<bool>("UiHiddenFunctionHidden", false, ConfigSource.Local)] public partial bool FunctionHidden { get; set; }
}
}
/// <summary>
/// 启动配置。
/// </summary>
[ConfigGroup("Launch")] partial class LaunchConfigGroup
{
/// <summary>
/// 内存分配模式。
/// </summary>
[ConfigItem<int>("LaunchRamType", 0, ConfigSource.Local)] public partial int MemoryAllocationMode { get; set; }
/// <summary>
/// 自定义内存分配大小。
/// </summary>
[ConfigItem<int>("LaunchRamCustom", 15, ConfigSource.Local)] public partial int CustomMemorySize { get; set; }
/// <summary>
/// 优先 IP 协议栈。
/// </summary>
[ConfigItem<JvmPreferredIpStack>("LaunchPreferredIpStack", JvmPreferredIpStack.Default)] public partial JvmPreferredIpStack PreferredIpStack { get; set; }
/// <summary>
/// 启动前优化内存。
/// </summary>
[ConfigItem<bool>("LaunchArgumentRam", false)] public partial bool OptimizeMemory { get; set; }
/// <summary>
/// 附加 JVM 参数。
/// </summary>
[ConfigItem<string>("LaunchAdvanceJvm", "-XX:+UseG1GC -XX:-UseAdaptiveSizePolicy -XX:-OmitStackTraceInFastThrow -Djdk.lang.Process.allowAmbiguousCommands=true -Dfml.ignoreInvalidMinecraftCertificates=True -Dfml.ignorePatchDiscrepancies=True -Dlog4j2.formatMsgNoLookups=true", ConfigSource.Local)] public partial string JvmArgs { get; set; }
/// <summary>
/// 附加游戏参数。
/// </summary>
[ConfigItem<string>("LaunchAdvanceGame", "", ConfigSource.Local)] public partial string GameArgs { get; set; }
/// <summary>
/// 预启动指令。
/// </summary>
[ConfigItem<string>("LaunchAdvanceRun", "", ConfigSource.Local)] public partial string PreLaunchCommand { get; set; }
/// <summary>
/// 是否等待预启动指令完成。
/// </summary>
[ConfigItem<bool>("LaunchAdvanceRunWait", true, ConfigSource.Local)] public partial bool PreLaunchCommandWait { get; set; }
/// <summary>
/// 禁用 Java Launch Wrapper。
/// </summary>
[ConfigItem<bool>("LaunchAdvanceDisableJLW", true, ConfigSource.Local)] public partial bool DisableJlw { get; set; }
/// <summary>
/// 禁用 Retro Wrapper
/// </summary>
[ConfigItem<bool>("LaunchAdvanceDisableRW", false, ConfigSource.Local)] public partial bool DisableRw { get; set; }
/// <summary>
/// 强制使用高性能显卡。
/// </summary>
[ConfigItem<bool>("LaunchAdvanceGraphicCard", true)] public partial bool SetGpuPreference { get; set; }
/// <summary>
/// 使用 java 而不是 javaw。
/// </summary>
[ConfigItem<bool>("LaunchAdvanceNoJavaw", false)] public partial bool NoJavaw { get; set; }
/// <summary>
/// 禁用 LWJGL Unsafe Agent。
/// </summary>
[ConfigItem<bool>("LaunchAdvanceDisableLwjglUnsafeAgent", false)] public partial bool DisableLwjglUnsafeAgent { get; set; }
/// <summary>
/// 渲染器。
/// </summary>
[ConfigItem<int>("LaunchAdvanceRenderer", 0 ,ConfigSource.Local)] public partial int Renderer { get; set; }
/// <summary>
/// 游戏窗口标题。
/// </summary>
[ConfigItem<string>("LaunchArgumentTitle", "", ConfigSource.Local)] public partial string Title { get; set; }
/// <summary>
/// 自定义左下角版本信息。
/// </summary>
[ConfigItem<string>("LaunchArgumentInfo", "PCLCE", ConfigSource.Local)] public partial string TypeInfo { get; set; }
/// <summary>
/// 选择的默认 Java 实例。
/// </summary>
[ConfigItem<string>("LaunchArgumentJavaSelect", "")] public partial string SelectedJava { get; set; }
/// <summary>
/// 版本隔离 V1。
/// </summary>
[ConfigItem<int>("LaunchArgumentIndie", 0, ConfigSource.Local)] public partial int IndieSolutionV1 { get; set; }
/// <summary>
/// 版本隔离 V2。
/// </summary>
[ConfigItem<int>("LaunchArgumentIndieV2", 4, ConfigSource.Local)] public partial int IndieSolutionV2 { get; set; }
/// <summary>
/// 游戏启动后启动器可见性。
/// </summary>
[ConfigItem<LauncherVisibility>("LaunchArgumentVisible", LauncherVisibility.DoNothing)] public partial LauncherVisibility LauncherVisibility { get; set; }
/// <summary>
/// 游戏进程优先级。
/// </summary>
[ConfigItem<GameProcessPriority>("LaunchArgumentPriority", GameProcessPriority.Normal)] public partial GameProcessPriority ProcessPriority { get; set; }
/// <summary>
/// 游戏窗口宽度。
/// </summary>
[ConfigItem<int>("LaunchArgumentWindowWidth", 854, ConfigSource.Local)] public partial int GameWindowWidth { get; set; }
/// <summary>
/// 游戏窗口高度。
/// </summary>
[ConfigItem<int>("LaunchArgumentWindowHeight", 480, ConfigSource.Local)] public partial int GameWindowHeight { get; set; }
/// <summary>
/// 游戏窗口模式 (正常/最大化/全屏)。
/// </summary>
[ConfigItem<GameWindowSizeMode>("LaunchArgumentWindowType", GameWindowSizeMode.Default, ConfigSource.Local)] public partial GameWindowSizeMode GameWindowMode { get; set; }
/// <summary>
/// 正版登录方式。
/// </summary>
[ConfigItem<int>("LoginMsAuthType", 1)] public partial int LoginMsAuthType { get; set; }
}
/// <summary>
/// 实例独立配置。<br/>
/// 懒得写注释了,自己理解吧。
/// </summary>
[ConfigGroup("Instance", ConfigSource.GameInstance)] partial class InstanceConfigGroup
{
[ConfigItem<string>("VersionAdvanceJvm", "")] public partial ArgConfig<string> JvmArgs { get; }
[ConfigItem<string>("VersionAdvanceGame", "")] public partial ArgConfig<string> GameArgs { get; }
[ConfigItem<int>("VersionAdvanceRenderer", 0)] public partial ArgConfig<int> Renderer { get; }
[ConfigItem<int>("VersionAdvanceAssets", 0)] public partial ArgConfig<int> AssetVerifySolutionV1 { get; }
[ConfigItem<bool>("VersionAdvanceAssetsV2", false)] public partial ArgConfig<bool> DisableAssetVerifyV2 { get; }
[ConfigItem<bool>("VersionAdvanceJava", false)] public partial ArgConfig<bool> IgnoreJavaCompatibility { get; }
[ConfigItem<bool>("VersionAdvanceDisableJlw", false)] public partial ArgConfig<bool> DisableJlwObsolete { get; }
[ConfigItem<string>("VersionAdvanceRun", "")] public partial ArgConfig<string> PreLaunchCommand { get; }
[ConfigItem<string>("VersionAdvanceClasspathHead", "")] public partial ArgConfig<string> ClasspathHead { get; }
[ConfigItem<bool>("VersionAdvanceRunWait", true)] public partial ArgConfig<bool> PreLaunchCommandWait { get; }
[ConfigItem<bool>("VersionAdvanceDisableJLW", false)] public partial ArgConfig<bool> DisableJlw { get; }
[ConfigItem<bool>("VersionAdvanceDisableLwjglUnsafeAgent", false)] public partial ArgConfig<bool> DisableLwjglUnsafeAgent { get; }
[ConfigItem<bool>("VersionAdvanceUseProxyV2", false)] public partial ArgConfig<bool> UseProxy { get; }
[ConfigItem<bool>("VersionAdvanceDisableRW", false)] public partial ArgConfig<bool> DisableRw { get; }
[ConfigItem<bool>("VersionUseDebugLog4j2Config", false)] public partial ArgConfig<bool> UseDebugLof4j2Config { get; }
[ConfigItem<int>("VersionRamType", 2)] public partial ArgConfig<int> MemorySolution { get; }
[ConfigItem<int>("VersionRamCustom", 15)] public partial ArgConfig<int> CustomMemorySize { get; }
[ConfigItem<int>("VersionRamOptimize", 0)] public partial ArgConfig<int> OptimizeMemoryResolution { get; }
[ConfigItem<string>("VersionArgumentTitle", "")] public partial ArgConfig<string> Title { get; }
[ConfigItem<bool>("VersionArgumentTitleEmpty", false)] public partial ArgConfig<bool> UseGlobalTitle { get; }
[ConfigItem<string>("VersionArgumentInfo", "")] public partial ArgConfig<string> TypeInfo { get; }
[ConfigItem<int>("VersionArgumentIndie", -1)] public partial ArgConfig<int> IndieV1 { get; }
[ConfigItem<bool>("VersionArgumentIndieV2", false)] public partial ArgConfig<bool> IndieV2 { get; }
[ConfigItem<string>("VersionArgumentJavaSelect", "使用全局设置")] public partial ArgConfig<string> SelectedJava { get; }
[ConfigItem<string>("VersionServerEnter", "")] public partial ArgConfig<string> ServerToEnter { get; }
}
/// <summary>
/// 实例独立配置的认证部分
/// </summary>
[ConfigGroup("InstanceAuth", ConfigSource.GameInstance)] partial class InstanceAuthConfigGroup
{
[ConfigItem<int>("VersionServerLoginRequire", 0)] public partial ArgConfig<int> LoginRequirementSolution { get; }
[ConfigItem<string>("VersionServerAuthRegister", "")] public partial ArgConfig<string> AuthRegisterAddress { get; }
[ConfigItem<string>("VersionServerAuthName", "")] public partial ArgConfig<string> AuthServerDisplayName { get; }
[ConfigItem<string>("VersionServerAuthServer", "")] public partial ArgConfig<string> AuthServerAddress { get; }
[ConfigItem<bool>("VersionServerLoginLock", false)] public partial ArgConfig<bool> AuthLocked { get; }
}
}