Snapshot for release 2026.10.6.1 (internal 1cbe514)
This commit is contained in:
parent
913a2a00b6
commit
abf9146a5b
93 changed files with 10168 additions and 597 deletions
|
|
@ -18,7 +18,7 @@ namespace RynthCore.App.Avalonia;
|
|||
/// </summary>
|
||||
internal static class LauncherDiag
|
||||
{
|
||||
private const string UnifiedLogDirectory = @"C:\Games\RynthCore\Logs";
|
||||
private static readonly string UnifiedLogDirectory = RynthCore.Install.RynthInstallPaths.CoreLogsDir; // C:\Games\RynthCore\Logs by default
|
||||
private const string UnifiedLogFileName = "RynthCore.log";
|
||||
|
||||
private static readonly object LogLock = new();
|
||||
|
|
|
|||
|
|
@ -2988,7 +2988,7 @@ internal partial class MainWindow : Window
|
|||
|
||||
// Tail the per-PID log for the last heartbeat line. Cheap: seek to
|
||||
// the end, read ~2KB, FileShare-tolerant of the engine's writer.
|
||||
string logPath = System.IO.Path.Combine(@"C:\Games\RynthCore\Logs", $"RynthCore.{pid}.log");
|
||||
string logPath = System.IO.Path.Combine(RynthCore.Install.RynthInstallPaths.CoreLogsDir, $"RynthCore.{pid}.log");
|
||||
string tail;
|
||||
try
|
||||
{
|
||||
|
|
|
|||
|
|
@ -53,4 +53,9 @@
|
|||
<Compile Include="..\RynthCore.Injector\InjectionResult.cs" Link="Shared\InjectionResult.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- Install-folder resolver (env, HKCU, HKLM, default C:\Games). Read only; same file in RynthSuite Plugins\Shared. -->
|
||||
<Compile Include="..\Shared\RynthInstallPaths.cs" Link="Shared\RynthInstallPaths.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ namespace RynthCore.App.Avalonia;
|
|||
/// </summary>
|
||||
internal sealed partial class RynthUpdater
|
||||
{
|
||||
public const string NavDataDefaultDir = @"C:\Games\RynthCore\NavData";
|
||||
public static readonly string NavDataDefaultDir = System.IO.Path.Combine(RynthCore.Install.RynthInstallPaths.CoreDir, "NavData"); // C:\Games\RynthCore\NavData by default
|
||||
public const string NavDataIdFile = "navdata.id";
|
||||
public const string NavDataLocalMarker = "navdata.local";
|
||||
private const string RynthNavFile = "RynthCore.Plugin.RynthNav.dll";
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ internal sealed class UsageStats
|
|||
public const string DefaultEndpoint = "https://aelrynth.com/rynth/ping";
|
||||
|
||||
/// <summary>Where the engine writes crash/hang minidumps (RynthCore.Engine CrashDump / LogPaths).</summary>
|
||||
public const string DefaultDumpDirectory = @"C:\Games\RynthCore\Logs\dumps";
|
||||
public static readonly string DefaultDumpDirectory = Path.Combine(RynthCore.Install.RynthInstallPaths.CoreLogsDir, "dumps"); // C:\Games\RynthCore\Logs\dumps by default
|
||||
|
||||
public const int Schema = 1;
|
||||
private const int MaxCrashes = 1000;
|
||||
|
|
@ -52,12 +52,12 @@ internal sealed class UsageStats
|
|||
private CancellationTokenSource _cts = new();
|
||||
private int _sending;
|
||||
|
||||
public UsageStats(string endpoint = DefaultEndpoint, string? stateDir = null, string dumpDir = DefaultDumpDirectory)
|
||||
public UsageStats(string endpoint = DefaultEndpoint, string? stateDir = null, string? dumpDir = null)
|
||||
{
|
||||
_endpoint = endpoint;
|
||||
_stateDir = stateDir ?? Path.Combine(
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "RynthCore");
|
||||
_dumpDir = dumpDir;
|
||||
_dumpDir = dumpDir ?? DefaultDumpDirectory;
|
||||
}
|
||||
|
||||
public string StatePath => Path.Combine(_stateDir, "usage-stats.json");
|
||||
|
|
|
|||
Loading…
Reference in a new issue