feat(engine): install-aware paths, logging levels and item drag bridge

- RynthInstallPaths: logs, AcClient, RynthSuite data and imgui.ini resolve
  from the installer-chosen folders instead of hard-coded C:\Games paths
  (engine, injector, loader, launcher, StatusAgent).
- Logging levels: engine.json "LoggingLevel" plus per-category levels
  (LogSettings), edited live from the launcher's Logging tab; RynthLog
  category methods write through them. Errors are always written.
- RynthCore.DesktopLog: shared rolling log + .NET desktop prerequisite check
  for the launcher and agents.
- Item drag bridge: an AC inventory item dragged onto an ImGui window is
  handed to the window instead of dropping on the ground (DragDropHooks,
  ItemDragBridge, Win32Backend input routing); ImGui gets the mouse over
  Avalonia panels while it wants it.

No plugin API changes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
BlankenshipG 2026-10-05 16:42:54 -04:00
commit 9709a39e63
32 changed files with 1978 additions and 87 deletions

View file

@ -19,6 +19,7 @@ using System;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
using RynthCore.Install;
namespace RynthCore.Loader;
@ -31,7 +32,8 @@ public static class EntryPoint
// Unified log path — must stay in sync with RynthCore.Engine.LogPaths.
// The loader cannot reference the engine assembly (it loads it
// dynamically), so the constants are mirrored here.
private const string UnifiedLogDirectory = @"C:\Games\RynthCore\Logs";
// Installer-chosen RynthCore folder (falls back to C:\Games\RynthCore).
private static readonly string UnifiedLogDirectory = RynthInstallPaths.CoreLogsDir;
private const string UnifiedLogFileName = "RynthCore.log";
/// <summary>
/// Subdirectory beside the loader where reload-generation copies of the

View file

@ -26,6 +26,11 @@
<Optimize>false</Optimize>
</PropertyGroup>
<ItemGroup>
<!-- Install-location resolver (installer-chosen RynthCore / RynthSuite folders). -->
<Compile Include="..\RynthCore.App\RynthInstallPaths.cs" Link="Shared\RynthInstallPaths.cs" />
</ItemGroup>
<!-- GC segment size (hex, 8 MB): reserves 16 MB of acclient's address space instead of 48. See RynthCore.Engine.csproj. -->
<ItemGroup>
<IlcArg Include="--runtimeopt:GCSegmentSize=800000" />