Added paths to log files in the "About" dialog for easier support (#304)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2025-02-27 20:17:51 +01:00
1 parent 277dc73468
commit 9d2b63bbaa
7 files changed
+123 -11

No files matched your search

@@ -0,0 +1,3 @@
namespace AIStudio.Tools.Rust;
public readonly record struct GetLogPathsResponse(string LogStartupPath, string LogAppPath);
@@ -0,0 +1,15 @@
using AIStudio.Tools.Rust;
namespace AIStudio.Tools.Services;
public sealed partial class RustService
{
/// <summary>
/// Get the paths of the log files.
/// </summary>
/// <returns>The paths of the log files.</returns>
public async Task<GetLogPathsResponse> GetLogPaths()
{
return await this.http.GetFromJsonAsync<GetLogPathsResponse>("/log/paths", this.jsonRustSerializerOptions);
}
}