mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 23:18:44 -07:00
Import december-2020-12-18 from private repo (scrubbed 2026-05-27)
Targets Rec Room 2020.12.18 client.
Re-import after adding:
- DorkNet.ClientMod/dorknet-clientmod.json.template — config schema
the launcher's manifest-driven patcher renders into UserData/.
- tools/build-patcher-zip.ps1 — produces the dorknet-clientpatch-{key}.zip
Release asset the launcher fetches.
- .github/workflows/release.yml — auto-publishes both Release assets
on v1-december-* tag push.
Scrubbed via maintainer-side scrub-for-public.ps1: same drop rules as
the prior import, plus build-patcher-zip.ps1 added to the tools/
allow-list so it survives the scrub.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace DorkNet.Models.Auth;
|
||||
|
||||
/// <summary>
|
||||
/// Login.CachedLogin — dump.cs:578388, Deserialize at RVA 0x1447BD0.
|
||||
///
|
||||
/// Verified by disassembly: reads platform, platformId, accountId,
|
||||
/// lastLoginTime (DateTime), requirePassword (default false). The Account
|
||||
/// field on the C# class is NOT read from the JSON dict — it is set via
|
||||
/// SetAccount(Account) after the fact, so the JSON shape doesn't need it.
|
||||
///
|
||||
/// Returned by:
|
||||
/// GET auth.rec.net/cachedlogin/forplatformid/{platform}/{platformId}
|
||||
/// GET api.rec.net/api/platformlogin/cached
|
||||
/// GET accounts.rec.net/account/v1/savedlogins
|
||||
/// as a List<CachedLogin>. Empty list = no remembered accounts.
|
||||
/// </summary>
|
||||
public class CachedLogin
|
||||
{
|
||||
// PlatformManager.PlatformType (int)
|
||||
[JsonPropertyName("platform")]
|
||||
public int Platform { get; set; }
|
||||
|
||||
[JsonPropertyName("platformId")]
|
||||
public string PlatformId { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("accountId")]
|
||||
public int AccountId { get; set; }
|
||||
|
||||
[JsonPropertyName("lastLoginTime")]
|
||||
public DateTime LastLoginTime { get; set; } = DateTime.UtcNow;
|
||||
|
||||
[JsonPropertyName("requirePassword")]
|
||||
public bool RequirePassword { get; set; } = false;
|
||||
}
|
||||
Reference in New Issue
Block a user