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:
parent
913a2a00b6
commit
9709a39e63
32 changed files with 1978 additions and 87 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using RynthCore.Install;
|
||||
|
||||
namespace RynthCore.StatusAgent;
|
||||
|
||||
|
|
@ -27,10 +28,10 @@ internal sealed class AgentConfig
|
|||
[JsonPropertyName("TimeoutSeconds")] public int TimeoutSeconds { get; set; } = 15;
|
||||
|
||||
/// <summary>Directory holding the engine's per-client status files.</summary>
|
||||
[JsonPropertyName("StatusDirectory")] public string StatusDirectory { get; set; } = @"C:\Games\RynthCore\Logs\status";
|
||||
[JsonPropertyName("StatusDirectory")] public string StatusDirectory { get; set; } = Path.Combine(RynthInstallPaths.CoreLogsDir, "status");
|
||||
|
||||
/// <summary>Directory holding per-client RynthCore.<pid>.log files (heartbeat fallback).</summary>
|
||||
[JsonPropertyName("LogDirectory")] public string LogDirectory { get; set; } = @"C:\Games\RynthCore\Logs";
|
||||
[JsonPropertyName("LogDirectory")] public string LogDirectory { get; set; } = RynthInstallPaths.CoreLogsDir;
|
||||
|
||||
/// <summary>When true and no status file exists for a running client, derive
|
||||
/// basic status from that client's heartbeat log line. Lets the agent work
|
||||
|
|
@ -97,12 +98,12 @@ internal sealed class AgentConfig
|
|||
/// <summary>portal.dat used to decode item icons for GET /icon (read-only inventory viewer). Defaults to
|
||||
/// the RynthCore client's private copy. If the file is absent (e.g. an agent running off the game box)
|
||||
/// /icon 404s and the app falls back to text rows — no other feature is affected.</summary>
|
||||
[JsonPropertyName("IconDatPath")] public string IconDatPath { get; set; } = @"C:\Games\RynthCore\AcClient\client_portal.dat";
|
||||
[JsonPropertyName("IconDatPath")] public string IconDatPath { get; set; } = Path.Combine(RynthInstallPaths.CoreDir, "AcClient", "client_portal.dat");
|
||||
|
||||
/// <summary>Directory of RynthAi's baked dungeon floor-plan maps ({landblock:X8}_{layer}.bin), served as
|
||||
/// PNGs via GET /map for the app's dungeon-map viewer. If the folder is absent (agent off the game box)
|
||||
/// /maps returns an empty list and /map 404s — no other feature is affected.</summary>
|
||||
[JsonPropertyName("MapsDirectory")] public string MapsDirectory { get; set; } = @"C:\Games\RynthSuite\RynthAi\Maps";
|
||||
[JsonPropertyName("MapsDirectory")] public string MapsDirectory { get; set; } = Path.Combine(RynthInstallPaths.RynthAiDir, "Maps");
|
||||
|
||||
/// <summary>cell.dat the landscape map (GET /worldmap) is drawn from, once, then cached as worldmap-v1.jpg in
|
||||
/// <see cref="StatusDirectory"/>. Absent = no world map (capabilities.worldMap false); nothing else changes.</summary>
|
||||
|
|
|
|||
Loading…
Reference in a new issue