mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-26 07:28:45 -07:00
d471b418b9
Targets Rec Room 2020.03.10 client (also serves 2020.03.06).
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 dorknet-clientpatch-{key}.zip
for v1-march-* Release uploads.
- .github/workflows/release.yml — on tag push publishes both
dorknet-server-march_2020_03_10-win-x64.zip and
dorknet-clientpatch-march_2020_03_10.zip as Release assets.
Same scrub rules as december; tools/build-patcher-zip.ps1 added to
the maintainer-side allow-list so it survives.
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
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;
|
|
}
|