mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-26 03:59:34 +08:00
修正格式
This commit is contained in:
@@ -68,4 +68,8 @@
|
||||
<LastGenOutput>SR.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="StyleCop.Analyzers" PrivateAssets="All" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -16,10 +16,12 @@ namespace System.Application.Services.Implementation
|
||||
public const string xdg = "xdg-open";
|
||||
public const string vi = "vi";
|
||||
public const string VSC = "code";
|
||||
|
||||
/// <summary>
|
||||
/// 临时 保存用户系统密码
|
||||
/// </summary>
|
||||
public string SystemUserPassword { get; set; } = string.Empty;
|
||||
|
||||
public LinuxPlatformServiceImpl()
|
||||
{
|
||||
// 平台服务依赖关系过于复杂,在构造函数中不得注入任何服务,由函数中延时加载调用服务
|
||||
@@ -80,7 +82,7 @@ namespace System.Application.Services.Implementation
|
||||
var value = string.Format(
|
||||
"{1}{0}.steam{0}registry.vdf",
|
||||
Path.DirectorySeparatorChar,
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments));
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments));
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -91,7 +93,7 @@ namespace System.Application.Services.Implementation
|
||||
var registryVdfPath = GetRegistryVdfPath();
|
||||
if (!string.IsNullOrWhiteSpace(registryVdfPath) && File.Exists(registryVdfPath))
|
||||
{
|
||||
dynamic v = VdfHelper.Read(registryVdfPath);
|
||||
dynamic v = VdfHelper.Read(registryVdfPath);
|
||||
if (v.Value.HKCU.Software.Valve.Steam.AutoLoginUser != null)
|
||||
{
|
||||
v.Value.HKCU.Software.Valve.Steam.AutoLoginUser = userName;
|
||||
|
||||
Reference in New Issue
Block a user