add ISteamService.SetCurrentUser

This commit is contained in:
Aigio Liu
2021-03-05 09:52:17 +08:00
parent 2f8a426bd7
commit 60b515b86b
14 changed files with 165 additions and 44 deletions
@@ -142,6 +142,11 @@ namespace System.Application.Services.Implementation
public string GetLastSteamLoginUserName()
=> Registry.CurrentUser.Read(SteamRegistryPath, "AutoLoginUser");
public void SetCurrentUser(string userName)
{
Registry.CurrentUser.AddOrUpdate(SteamRegistryPath, "AutoLoginUser", userName, RegistryValueKind.String);
}
}
}
#pragma warning restore CA1416 // 验证平台兼容性