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:
@@ -119,6 +119,9 @@ namespace System.Application.Services
|
||||
/// <inheritdoc cref="ISteamService.GetLastLoginUserName"/>
|
||||
string GetLastSteamLoginUserName();
|
||||
|
||||
/// <inheritdoc cref="ISteamService.SetCurrentUser(string)"/>
|
||||
void SetCurrentUser(string userName);
|
||||
|
||||
#endregion
|
||||
|
||||
public const ResizeMode ResizeMode_NoResize = 0;
|
||||
|
||||
@@ -56,6 +56,12 @@ namespace System.Application.Services
|
||||
/// <returns></returns>
|
||||
List<SteamUser> GetRememberUserList();
|
||||
|
||||
/// <summary>
|
||||
/// 设置下次登陆 Steam 用户
|
||||
/// </summary>
|
||||
/// <param name="userName"></param>
|
||||
void SetCurrentUser(string userName);
|
||||
|
||||
List<SteamApp>? GetAppListJson(string filePath);
|
||||
|
||||
bool UpdateAppListJson(List<SteamApp> apps, string filePath);
|
||||
|
||||
+2
@@ -146,6 +146,8 @@ namespace System.Application.Services.Implementation
|
||||
return users;
|
||||
}
|
||||
|
||||
public string SetCurrentUser(string userName) => platformService.SetCurrentUser(userName);
|
||||
|
||||
public List<SteamApp>? GetAppListJson(string filePath)
|
||||
{
|
||||
if (!File.Exists(filePath))
|
||||
|
||||
Reference in New Issue
Block a user