Skip to content

Commit

Permalink
🐛 SteamApp 安装状态获取修复
Browse files Browse the repository at this point in the history
  • Loading branch information
luojunyuan committed Jan 21, 2025
1 parent 1e6b392 commit ba639b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public async Task<ApiRspImpl<bool>> OwnsApp(uint appid, CancellationToken cancel
//IsInstalled = IsAppInstalled(s.AppId)
//s.IsInstalled = IsAppInstalled(s.AppId);
//s.InstalledDir = GetAppInstallDir(s.AppId);
s.State = IsAppInstalled(s.AppId).GetAwaiter().GetResult().IsSuccess ? 4 : s.State;
s.State = SteamClient.SteamApps008.IsAppInstalled(s.AppId) ? 4 : s.State;
s.InstalledDir = string.IsNullOrEmpty(s.InstalledDir) ? GetAppInstallDir(s.AppId).GetAwaiter().GetResult().Content : s.InstalledDir;
s.Type = Enum.TryParse<SteamAppType>(GetAppData(s.AppId, "type").GetAwaiter().GetResult().Content, true, out var result) ? result : SteamAppType.Unknown;
return s;
Expand Down

0 comments on commit ba639b5

Please sign in to comment.