This commit is contained in:
Lightczx
2024-03-14 11:24:55 +08:00
parent 88528fa28d
commit 1a74c7ca96

View File

@@ -1,6 +1,7 @@
// Copyright (c) DGP Studio. All rights reserved.
// Licensed under the MIT license.
using System.IO;
using System.Text;
namespace Snap.Hutao.Web.Hoyolab.SdkStatic.Hk4e.Launcher.Resource;
@@ -16,6 +17,6 @@ internal static class LatestPackageExtension
}
latest.Path = pathBuilder.ToStringTrimEndReturn();
latest.Name = latest.Segments[0].Path[..^4]; // .00X
latest.Name = Path.GetFileName(latest.Segments[0].Path[..^4]); // .00X
}
}