mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-22 09:36:09 +08:00
add ISteamService.SetCurrentUser
This commit is contained in:
+5
@@ -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 // 验证平台兼容性
|
||||
Reference in New Issue
Block a user