code style

This commit is contained in:
DismissedLight
2023-12-24 21:50:47 +08:00
parent ea95f2e2b1
commit 48ddb4c091
2 changed files with 5 additions and 1 deletions

View File

@@ -49,7 +49,8 @@ internal sealed partial class ShellLinkInterop : IShellLinkInterop
IShellLinkDataList shellLinkDataList = (IShellLinkDataList)shellLink;
shellLinkDataList.GetFlags(out uint flags);
shellLinkDataList.SetFlags(flags | (uint)SHELL_LINK_DATA_FLAGS.SLDF_RUNAS_USER);
flags |= (uint)SHELL_LINK_DATA_FLAGS.SLDF_RUNAS_USER;
shellLinkDataList.SetFlags(flags);
string desktop = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
string target = Path.Combine(desktop, $"{SH.FormatAppNameAndVersion(runtimeOptions.Version)}.lnk");

View File

@@ -15,6 +15,9 @@ internal sealed partial class SettingEntry
public const string GamePathEntries = "GamePathEntries";
[Obsolete("不再使用 PowerShell")]
public const string PowerShellPath = "PowerShellPath";
/// <summary>
/// 空的历史记录卡池是否可见
/// </summary>