Persist EULA acceptance

Persist the accepted EULA version before responding and return both
agreement fields in the profile. Respond to matching heartbeats.
This commit is contained in:
N0VAN0M4LY committed 2026-11-24 09:05:31 +08:00
1 parent ce389c2154
commit c3c5f583ad
7 files changed
+108 -10

No files matched your search

@@ -2,6 +2,7 @@
import type { AccountStore } from '../../accounts/account-store.ts';
import type { PlayerProfiles } from '../../profile/player-profiles.ts';
import type { CharActionHandler } from '../char-action.ts';
import { acceptEula } from './agreement-actions.ts';
import { entitlementsFull, initialMeta, legacyUserData } from './online-init-actions.ts';
export interface ActionDependencies {
@@ -14,5 +15,6 @@ export function actionTable(deps: ActionDependencies): ReadonlyMap<string, CharA
['cln_get_initial_meta', initialMeta()],
['cln_upd_entitlements_full', entitlementsFull(deps.profiles, deps.accounts)],
['cln_legacy_get_userdata', legacyUserData(deps.profiles, deps.accounts)],
['cln_accept_eula', acceptEula(deps.profiles, deps.accounts)],
]);
}