Snapshot for release 2026.10.11.1 (internal 4eca83a)

This commit is contained in:
Tom Bohar 2026-10-11 15:00:53 -04:00
commit 08b80eed86
94 changed files with 11103 additions and 567 deletions

View file

@ -34,6 +34,12 @@ internal sealed class AppSettings
/// True once the launcher has explained usage statistics and asked (shown once).
public bool UsageStatsAsked { get; set; }
/// The player said "leave it" (or no at Windows' prompt) when the launcher offered to take
/// the RynthCore Decal bridge out of Decal's list for all users because no account uses
/// Decal + RynthCore any more. The launcher then doesn't ask again at start (switching the
/// last account away still asks). Cleared when the bridge is registered again.
public bool DecalFilterRemovalDeclined { 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,

View file

@ -179,15 +179,15 @@ internal static class DecalBridgeCheck
}
/// <summary>
/// What the installer (and every update) writes, so a client finds the bridge whatever
/// its rights (installer\RynthCore.iss: <see cref="DecalBridgeRegistration.RegisterMachineWide"/>
/// Where a registration goes (the launcher's, and the installer's for a user with a
/// Decal + RynthCore account: installer\RynthCore.iss, <see cref="DecalBridgeRegistration.RegisterMachineWide"/>
/// elevated, <see cref="DecalBridgeRegistration.InstallPerUser"/> as the installing user):
/// - Machine: always (when Decal is installed). Elevated and unvirtualized clients read
/// only HKLM; a virtualized client without a per-user copy reads HKLM too.
/// - PerUser: only into a per-user copy that ALREADY exists. A virtualized client then
/// reads that copy and nothing else, so the HKLM entry is hidden from it. Creating a
/// copy that doesn't exist would be harmful: it would hide every HKLM filter added later
/// (a Decal plugin installed for all users) from this user's non-elevated clients.
/// reads that copy and nothing else, so the HKLM entry is hidden from it. A copy is never
/// created: it would hide every HKLM filter added later (a Decal plugin installed for all
/// users) from this user's non-elevated clients. Repair Decal removes an existing one.
/// </summary>
public static (bool Machine, bool PerUser) PlanInstall(IDecalCheckHost host)
{
@ -262,7 +262,7 @@ internal static class DecalBridgeCheck
r.NeedsMachineWideRegistration = !where.PerUser;
r.Add(Level.Fail, $"Decal will not load the bridge: {entryProblem} in {whereText}." +
(where.PerUser
? " Repair (or a Decal + RynthCore launch) registers it for your Windows user."
? " Repair (or a Decal + RynthCore launch) adds it there and to the list for all users (Windows may ask for administrator permission once)."
: " That key is shared by all users: Repair adds it there once and Windows asks for administrator permission."));
}
@ -303,7 +303,7 @@ internal static class DecalBridgeCheck
List<string> hidden = HiddenMachineFilters(host, where.Path);
if (hidden.Count > 0)
r.Add(Level.Warn, "Hidden from AC by your per-user filter list (in HKLM, not in the copy): " + string.Join(", ", hidden) +
". If 'World Object Filter' is among them, VTank won't start.");
". If 'World Object Filter' is among them, VTank won't start. Recovery Actions > Repair Decal removes the per-user copy (after a backup).");
}
// 7. Decal's .NET surrogate: Decal must be able to create it, and must not have it disabled.

File diff suppressed because it is too large Load diff

View file

@ -257,6 +257,27 @@ internal sealed class RealRegistryView : IDisposable
return scope;
}
/// <summary>
/// UAC registry virtualization is on for this process right now (outside an
/// <see cref="Enter"/> scope, or when switching it off failed). An HKLM write would then
/// land in the per-user VirtualStore copy, which registration must never create.
/// Fails closed: true when the token can't be read.
/// </summary>
public static bool ProcessVirtualized()
{
try
{
if (!OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, out IntPtr token)) return true;
try
{
int on = 0;
return !GetTokenInformation(token, TokenVirtualizationEnabled, ref on, sizeof(int), out _) || on != 0;
}
finally { CloseHandle(token); }
}
catch { return true; }
}
public void Dispose()
{
if (_token == IntPtr.Zero) return;