Three-way merge of upstream/main (c3e1548) on top of the recorded9b5e276base. Upstream's UI data hub, ImGui faces, EngineFrameController, CoreCLR engine and Decal bridge are adopted; SK-local features are ported into the new structure: plugin API v77 (GetMergeStackResult appended), plugin overlay windows, chat standard filters and match modes, Shields, Inventory HUDs button, RynthAi dashboard remote buttons. Installer keeps the two-folder layout and gains -NativeAot and Decal-detecting bridge staging. See Changelog/2026-10-05-aelrynth-2026.10.5.1-merge.md. Co-authored-by: Cursor <cursoragent@cursor.com>
82 lines
4.3 KiB
C#
82 lines
4.3 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace RynthCore.App;
|
|
|
|
internal sealed class AppSettings
|
|
{
|
|
public string AcClientPath { get; set; } = string.Empty;
|
|
public string EnginePath { get; set; } = string.Empty;
|
|
public string LaunchArguments { get; set; } = string.Empty;
|
|
public string SelectedServerProfileId { get; set; } = string.Empty;
|
|
public string SelectedAccountProfileId { get; set; } = string.Empty;
|
|
public List<string> CheckedLaunchAccountProfileIds { get; set; } = [];
|
|
public string SelectedMainTabId { get; set; } = "launcher";
|
|
public bool AllowMultipleClients { get; set; }
|
|
public bool SkipIntroVideos { get; set; }
|
|
public bool SkipLoginLogos { get; set; }
|
|
public bool AutoLaunch { get; set; }
|
|
public bool AutoInjectAfterLaunch { get; set; } = true;
|
|
public bool WatchForAcStart { get; set; } = true;
|
|
public bool InjectAllRunningClients { get; set; } = true;
|
|
public string LoggingLevel { get; set; } = "Info";
|
|
public int LaunchStaggerMs { get; set; } = 250;
|
|
public int CrashRelaunchLimitInWindow { get; set; } = 3;
|
|
public int CrashRelaunchWindowMinutes { get; set; } = 5;
|
|
public bool OverrideWindowTitle { get; set; } = true;
|
|
|
|
/// When true (default), the launcher installs RynthSuite plugin updates as soon as a
|
|
/// check finds them. Safe mid-session: running clients keep the version they started
|
|
/// with; the new one loads on the next AC start. Core updates always ask first.
|
|
public bool AutoUpdatePlugins { get; set; } = true;
|
|
|
|
/// "Help improve RynthCore": one anonymous usage report a day (see the launcher's
|
|
/// UsageStats.cs for exactly what is sent). OFF unless the player turns it on.
|
|
public bool UsageStatsEnabled { get; set; }
|
|
|
|
/// True once the launcher has explained usage statistics and asked (shown once).
|
|
public bool UsageStatsAsked { get; set; }
|
|
|
|
/// When true, the launcher kills any RynthCore-mode acclient.exe it
|
|
/// launched that hasn't reached IsLoggedIn within
|
|
/// <see cref="StuckClientTimeoutSeconds"/>. Catches stuck char-select,
|
|
/// patcher hangs, and "you have been disconnected" failure screens at
|
|
/// the front of the launch flow. Off by default — destructive.
|
|
/// Decal-mode clients are skipped (no engine = no IsLoggedIn signal).
|
|
public bool KillStuckClients { get; set; }
|
|
public int StuckClientTimeoutSeconds { get; set; } = 60;
|
|
|
|
/// When true (default), the launcher kills+relaunches a RynthCore-mode
|
|
/// client whose per-PID heartbeat shows the WEDGE signature: login=1 and
|
|
/// fps=0 sustained for <see cref="WedgeRestartSeconds"/> while the engine
|
|
/// heartbeat keeps flowing (AC main thread dead, process alive — the AV
|
|
/// class). Containment for the residual corruption AVs: an overnight soak
|
|
/// loses ~2 minutes to a wedge instead of the rest of the night.
|
|
/// Minimized windows are exempt (some drivers stop presenting). Relaunch
|
|
/// rides the existing crash-relaunch machinery (counts toward the
|
|
/// circuit breaker) and needs AutoLaunch for the relaunch half.
|
|
public bool AutoRestartWedgedClients { get; set; } = true;
|
|
public int WedgeRestartSeconds { get; set; } = 90;
|
|
public List<string> EnabledPluginIds { get; set; } = [];
|
|
public List<string> PluginDllPaths { get; set; } = [];
|
|
|
|
/// User-added plugin DLL paths whose checkboxes are currently unchecked.
|
|
/// The path stays in <see cref="PluginDllPaths"/> (so the row remains in
|
|
/// the UI), but is filtered out when syncing PluginPaths into engine.json.
|
|
/// Case-insensitive set semantics; comparisons must use OrdinalIgnoreCase.
|
|
public List<string> DisabledPluginDllPaths { get; set; } = [];
|
|
|
|
/// <summary>
|
|
/// Last installer plugin hand-off (registry <c>Software\Rynth\PendingPluginRegistration</c>)
|
|
/// the launcher applied. Lets an all-users install, whose HKLM value the launcher cannot
|
|
/// delete, register its plugins once without re-adding a plugin the user later removed.
|
|
/// </summary>
|
|
public string? AppliedInstallerPluginRegistration { get; set; }
|
|
|
|
public List<LaunchServerProfile> ServerProfiles { get; set; } = [];
|
|
public List<LaunchAccountProfile> AccountProfiles { get; set; } = [];
|
|
|
|
public double? WindowX { get; set; }
|
|
public double? WindowY { get; set; }
|
|
public double? WindowWidth { get; set; }
|
|
public double? WindowHeight { get; set; }
|
|
}
|