From 91dfc500df82e2fc3af3de6eef214eb8063bf864 Mon Sep 17 00:00:00 2001 From: Aigio Liu Date: Mon, 22 Nov 2021 10:36:35 +0800 Subject: [PATCH] remove public const dirname steamapps --- src/ST.Client/Services/ISteamService.cs | 6 ------ src/ST.Client/Services/Implementation/SteamServiceImpl.cs | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ST.Client/Services/ISteamService.cs b/src/ST.Client/Services/ISteamService.cs index 6fac1f368..15583278b 100644 --- a/src/ST.Client/Services/ISteamService.cs +++ b/src/ST.Client/Services/ISteamService.cs @@ -22,12 +22,6 @@ namespace System.Application.Services const string url_steamcommunity_checkclientautologin = url_steamcommunity + "/login/checkclientautologin"; static readonly Uri uri_store_steampowered_checkclientautologin = new(url_store_steampowered_checkclientautologin); - #region 文件夹名,linux上区分大小写 - - public const string dirname_steamapps = "steamapps"; - - #endregion - /// /// Steam 文件夹目录 /// diff --git a/src/ST.Client/Services/Implementation/SteamServiceImpl.cs b/src/ST.Client/Services/Implementation/SteamServiceImpl.cs index 2fad5c589..6a8d2e661 100644 --- a/src/ST.Client/Services/Implementation/SteamServiceImpl.cs +++ b/src/ST.Client/Services/Implementation/SteamServiceImpl.cs @@ -530,6 +530,8 @@ namespace System.Application.Services.Implementation string[]? GetLibraryPaths() { + const string dirname_steamapps = "steamapps"; // 文件夹名,linux上区分大小写 + if (string.IsNullOrEmpty(SteamDirPath) || !Directory.Exists(SteamDirPath)) { return null;