Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b96d907d48 |
No files matched your search
-114
@@ -27,102 +27,6 @@ under a `## [x.y.z] - date` heading in the same commit that bumps `VERSION`, the
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Changed
|
||||
|
||||
- **`0.1.0-beta.4`'s notes named a cause they had no evidence for, and are corrected in place** (see its *Updating*
|
||||
section). The owner reported afterwards that the external USB drive holding the Steam library had a loose cable that
|
||||
evening. Windows' System and Application logs for 2026-09-21 agree and re-date the day's symptoms: disk resets and
|
||||
paging errors on that drive from 20:42; `start_protected_game.exe` (20:56) and `GF2_Exilium.exe` (21:45) both
|
||||
ended with `0xc0000006`, an in-page I/O error — the drive, not FrameLedger, and **FrameLedger had injected nothing
|
||||
into ELDEN RING in any run**; the Agent's "executable unreadable" for all 46 titles and the two pipe timeouts at
|
||||
21:12–21:13 sit inside a burst of 30 disk errors. **What the drive does NOT explain, and beta.4's fixes stand on:**
|
||||
Easy Anti-Cheat's own log says "successfully loaded in-game" for ELDEN RING at 21:29:28, the second the resolver
|
||||
found a process it could not open (`TargetUnreadable`); the two App instances started 360 ms apart at 21:07; the
|
||||
English safety texts and the contradictory line are in the screenshot itself.
|
||||
|
||||
## [0.1.0-beta.4] - 2026-09-21
|
||||
|
||||
**The fourth pre-release: four faults found in the first day of `0.1.0-beta.3`.** The same unsigned installer: verify
|
||||
its hash against `SHA256SUMS.txt`, then *More info → Run anyway*. What changed for a user:
|
||||
|
||||
- **Only one FrameLedger window now.** Starting the App while it is already running (a double-click, or the shortcut
|
||||
while it sits in the tray) brings the running one forward instead of opening a second one with a second tray icon.
|
||||
- **The safety texts follow your language.** In a Vietnamese UI the consent dialog, the refusal notices and the
|
||||
guard-bypass card were English.
|
||||
- **The guard bypass is honest about what it cannot do.** A game whose anti-cheat protects its process (ELDEN RING
|
||||
under Easy Anti-Cheat is one) cannot be opened by any other program, so FrameLedger cannot measure it with or without
|
||||
the bypass, and it will not try to get around that protection. beta.3 showed nothing at all in that case; this build
|
||||
shows a notice that says so, the bypass warning says it before you accept, and the game page no longer says
|
||||
"Hooking is disabled" beside a hooking switch that is on.
|
||||
|
||||
**Updating from `0.1.0-beta.3`:**
|
||||
|
||||
- Quit the App (tray icon → Exit) and end `FrameLedger.Agent.exe` before running the installer.
|
||||
> **Corrected the same evening.** This bullet went on to say that on 2026-09-21 "an install over a running Agent left
|
||||
> a half-replaced folder and the App failed to start three times". **That cause was a guess and the logs do not
|
||||
> support it**: nothing was installed between the three failed starts (20:59–21:01, `Could not load …
|
||||
> Microsoft.Data.Sqlite`) and the start that worked at 21:02. What Windows' own event log shows for that hour is a
|
||||
> failing external USB drive (the owner's report: a loose cable) and two restarts of the PC at 20:57 and 21:02. The
|
||||
> three failed starts are **unexplained**; the advice to stop the Agent before installing stands on its own.
|
||||
- The Disclaimer moved to 2.4 (one paragraph about the bypass), so the Legal Gate opens once.
|
||||
- No schema change. A bypass you already accepted stays on; the new warning text is shown the next time you turn one on.
|
||||
|
||||
### Fixed
|
||||
|
||||
- **A second App could be started beside the first.** Nothing enforced one instance: the owner's log of 2026-09-21
|
||||
shows two started 360 ms apart from one double-click — two windows, two tray icons, a second log file, both writing
|
||||
one ledger — and with "minimize to tray" on, every click on the shortcut made another. The App now claims its data
|
||||
folder at start (`Services.SingleInstance`, a named mutex and event keyed on the folder); a later start hands over to
|
||||
the running one, which brings its window forward, and exits. `--diag` still runs beside a running App.
|
||||
- **A Vietnamese (or Japanese) UI showed the safety texts in English** — the consent dialog, the refusal notices, and
|
||||
the whole guard-bypass card in beta.3's screenshot. `FrameLedger.Shared`'s string family was never given the UI
|
||||
culture and fell back to the thread's, which the App's async start does not pass to later dispatcher work.
|
||||
`App.ApplyCulture` sets both families now. (Japanese safety text is still the English by design, until reviewed.)
|
||||
- **Under the guard bypass the game page said "Hooking is disabled for this game: …" beside a hooking switch that was
|
||||
on.** The finding stays on the page and now reads "The guard found: … You chose to bypass it for this game".
|
||||
- **With the bypass on, a game protected by a kernel anti-cheat produced nothing at all** — no session, and a toast
|
||||
reading `InjectFailed: TargetAmbiguous`. Measured on the owner's ELDEN RING (Easy Anti-Cheat): the anti-cheat's
|
||||
driver closes the game's process to other programs, the resolver could read no candidate, and it called that
|
||||
"ambiguous". It is `TargetUnreadable` now, and it reaches the user as a persistent notice that says what happened,
|
||||
that nothing was injected or measured, and that **the bypass does not change this and FrameLedger will not work
|
||||
around another product's protection** (rule 3). The bypass disclosure says the same before it is accepted (its
|
||||
version is `guard-bypass-dialog/2`), and so does `legal/DISCLAIMER.md` §2A (2.3 -> **2.4**, so the Legal Gate opens
|
||||
once). The same reason covers a game running as administrator while the Agent does not.
|
||||
- The refusal notices said "there is no way to override this"; they name the per-game bypass switch and whose risk it is.
|
||||
|
||||
### Changed
|
||||
|
||||
- The Agent's session log line names what the guard said when it was not a plain allow
|
||||
(`…; guard=BlockedService/Easy Anti-Cheat/EasyAntiCheat_EOS`), and `started-under-bypass=` for a bypassed start. A
|
||||
`SafetyUnhook` on the owner's machine left no trace of WHICH finding fired; the pipe event carried it and the log,
|
||||
which is what survives, did not.
|
||||
|
||||
## [0.1.0-beta.3] - 2026-09-21
|
||||
|
||||
**The third pre-release.** The same unsigned installer as before: verify its hash against `SHA256SUMS.txt`, then
|
||||
*More info → Run anyway*. What changed for a user:
|
||||
|
||||
- **The terms changed, so the Legal Gate opens once after the update.** They now say plainly that this is beta
|
||||
software with bugs, that your PC must meet each game's own minimum requirements, and what the new guard bypass means.
|
||||
- **CPU load, system memory and (when the Agent runs as administrator with PawnIO) CPU temperature are recorded**, and a
|
||||
game's Trend tab can chart them, the GPU's load and power, VRAM and the ×FG factor across that game's sessions.
|
||||
Settings ▸ System shows this PC as FrameLedger records it.
|
||||
- **DLSS is named.** Titles that call DLSS directly read "Unknown upscaler"; they now read "DLSS (driver-reported)"
|
||||
where the NVIDIA driver reports it — including sessions you already recorded.
|
||||
- **A game imported from Steam could never hook** when the import picked a helper executable instead of the game
|
||||
(GIRLS' FRONTLINE 2 was one). The import picks the game now, and the game page shows the executable and can change it.
|
||||
- **The platform and engine tags were blank white boxes in the light theme.** Fixed.
|
||||
- **New, off by default, per game: "Bypass the anti-cheat guard (at your own risk)".** Read its warning. Your account
|
||||
can be permanently banned, and the developers accept no responsibility if you turn it on.
|
||||
|
||||
**Updating from `0.1.0-beta.2`:**
|
||||
|
||||
- Quit the App (tray icon → Exit) before installing, as before.
|
||||
- On its first start the ledger migrates to schema 7 (the guard-bypass columns; nothing existing is rewritten).
|
||||
- **A game an earlier Steam import created for the wrong executable is not rewritten.** Open it, check the path under
|
||||
its name, and use *Change executable…* (hooking is turned off for it and must be enabled again), or remove it.
|
||||
- Sessions recorded before this version keep N/A for CPU load, memory and CPU temperature: nothing measured them.
|
||||
|
||||
### Fixed
|
||||
|
||||
- **DLSS read "Unknown upscaler" on most titles while FSR was named.** Most DLSS titles call NGX directly, and no NGX
|
||||
@@ -199,24 +103,6 @@ its hash against `SHA256SUMS.txt`, then *More info → Run anyway*. What changed
|
||||
|
||||
### Changed
|
||||
|
||||
- **The terms say what an end user needs to hear, and must be accepted again.** `legal/DISCLAIMER.md` 2.2 -> **2.3**:
|
||||
a new §0 (**this is pre-release software — it certainly still has bugs, and the developer is not responsible for
|
||||
incidents that result**), §2A (the guard bypass, entirely at your own risk, no liability), §4A (**your PC must meet
|
||||
at least the minimum requirements the game's developer or publisher states — read them first; problems on a machine
|
||||
below them, or on unstable, overclocked or overheating hardware, are yours and not the developer's**) and §7A (back
|
||||
up your own data; builds are unsigned, download only from the project's Releases page and verify the hash; no
|
||||
affiliation with any game, platform or vendor; numbers are for your own information). `legal/EULA.md` 1.0 -> **1.1**
|
||||
says the same in §2A/§2B. The first-run Legal step shows a short plain-language summary of those points in en/vi/ja
|
||||
above the documents, which remain the terms. Because both versions moved, the Legal Gate opens once after the update.
|
||||
The accuracy block's Safety bullet no longer says "There is no override anywhere".
|
||||
- **Docs that had gone stale.** `legal/THIRD_PARTY_NOTICES.md` gains the test-time row it never had (xUnit.net v3 4.x
|
||||
under Apache-2.0, FluentAssertions 7.x and why it is pinned, NSubstitute, coverlet, Test.Sdk, Catch2);
|
||||
`16_WPFUI_SYNTAX` named a TFM this repository never built; `14_TESTING` still called Catch2 and the blocked toggle
|
||||
future work; README's status line said "pre-alpha" beside three pre-releases; `build.ps1` "skipped" the coverage and
|
||||
rules gates when their tools were missing, which its own header calls worse than no gate — a missing tool fails now.
|
||||
- **Two flaky tests, seen on CI the same day.** The native-log test slept a fixed 1500 ms and read the Overlay's log
|
||||
between two lines (it polls for the last one now); `ParentDumpTests` dumped a child process microseconds after starting
|
||||
it and got `ERROR_PARTIAL_COPY` (it waits for the child to finish loading). Neither was a product defect.
|
||||
- **A local native build no longer fails on an uncommitted change.** After the first tag `git describe --dirty`
|
||||
produces `v0.1.0-beta.2-2-g<12 hex>-dirty`, 35 characters against `FlShmHandshake::buildId`'s 31, so every CMake
|
||||
configure of a dirty tree was fatal and the workaround was "commit before you build". The id now falls back to an
|
||||
|
||||
@@ -5,12 +5,11 @@
|
||||
> No telemetry. No accounts. All data stays on your machine.
|
||||
|
||||
<!-- accuracy-block:begin -->
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-09-21.** The software is a beta; its latest
|
||||
> **pre-release is `0.1.0-beta.4`** (2026-09-21), an unsigned installer built from that tag with its
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-09-17.** The software is pre-alpha; its latest
|
||||
> **pre-release is `0.1.0-beta.2`** (2026-09-17), an unsigned installer built from that tag with its
|
||||
> checksums published beside it. The source holds the desktop app
|
||||
> (library, store import, charts, settings) and the background Agent, which records a session when a
|
||||
> game in the library runs, injects only into games you enabled and only past the safety guard (or,
|
||||
> for a game whose guard bypass you turned on yourself, past your own acceptance of that risk), and
|
||||
> game in the library runs, injects only into games you enabled and only past the safety guard, and
|
||||
> stores sessions in a local database. What that path measures:
|
||||
>
|
||||
> - **Frame times and output resolution:** measured from the present call for Direct3D 11/12 and
|
||||
@@ -61,11 +60,7 @@
|
||||
> half of the suspicious-module rule. During every capture the Agent re-runs the checks every 30 s and
|
||||
> stops capturing on a refusal: a Direct3D or OpenGL game's hooks are removed, and the Vulkan layer
|
||||
> goes passthrough. A global switch in Settings turns all hooking off, and a running capture stops at
|
||||
> its next check; it can only refuse, never permit. **There is one override, and only one:** a per-game
|
||||
> "bypass the anti-cheat guard" switch, off by default, that you can turn on only by accepting its own
|
||||
> warning (a tick and a typed word). With it on, FrameLedger injects into that game even where the
|
||||
> checks find anti-cheat, the 30 s re-check no longer stops the capture for that finding, and every
|
||||
> session started that way is marked. It never changes HOW FrameLedger injects: nothing is hidden.
|
||||
> its next check; it can only refuse, never permit. There is no override anywhere.
|
||||
>
|
||||
> Where a value is not measured it reads `N/A`, with two exceptions: FPS then shows Presented FPS with a
|
||||
> note on what it may include, and ray-tracing flags may show a value you set yourself, labelled as
|
||||
@@ -138,7 +133,7 @@ Elevation is **optional — for everything.** Hooked capture is the normal path
|
||||
|
||||
## Install
|
||||
|
||||
> **The latest pre-release is `v0.1.0-beta.4` (2026-09-21); before it `v0.1.0-beta.3` (2026-09-21), `v0.1.0-beta.2` (2026-09-17) and `v0.1.0-beta.1` (2026-09-16).** They are pre-releases: read `CHANGELOG.md`'s section for the one you install — what it measures, what it does not yet, and how to update — before installing. A source build is `docs/12_BUILD.md`.
|
||||
> **The latest pre-release is `v0.1.0-beta.2` (2026-09-17); the first was `v0.1.0-beta.1` (2026-09-16).** They are pre-releases: read `CHANGELOG.md`'s section for the one you install — what it measures, what it does not yet, and how to update — before installing. A source build is `docs/12_BUILD.md`.
|
||||
|
||||
1. Download the latest `FrameLedger.App-win-Setup.exe` from [Releases](https://github.com/poli0981/frameledger/releases). It installs into `%LOCALAPPDATA%\FrameLedger.App`; your data stays in `%LOCALAPPDATA%\FrameLedger`, and uninstalling asks before touching it.
|
||||
2. SmartScreen may warn — releases are not code-signed (free, open-source project). Verify the SHA-256 checksum published with each release, then **More info → Run anyway**.
|
||||
@@ -166,4 +161,4 @@ If you find a game with anti-cheat that FrameLedger fails to detect, please open
|
||||
|
||||
---
|
||||
|
||||
**Status:** pre-release (beta). Four tagged pre-releases so far; see `CHANGELOG.md` for what each one changed and the accuracy block at the top of this file for what is and is not measured. It is not feature-complete, it certainly still has bugs, and `legal/DISCLAIMER.md` §0 says what that means for you.
|
||||
**Status:** pre-alpha, under active development; latest pre-release `v0.1.0-beta.2` (2026-09-17). Roadmap: [`docs/15_ROADMAP.md`](docs/15_ROADMAP.md).
|
||||
@@ -299,10 +299,12 @@ function Invoke-Managed([bool]$FixFormat) {
|
||||
# so the number is never negotiated against code that already exists.
|
||||
Write-Step 'coverage-gate'
|
||||
$coverageTool = Join-Path $repo 'tools/coverage-gate.ps1'
|
||||
# The tool has existed since P2. A missing file is a broken checkout, and this script's own header says why a gate
|
||||
# must not read as "skipped" then: it would say "checked" in CI output when nothing was (corrected 2026-09-21).
|
||||
if (-not (Test-Path $coverageTool)) { throw 'tools/coverage-gate.ps1 is missing; the coverage gate cannot be skipped' }
|
||||
Invoke-Checked 'coverage-gate' { & $coverageTool }
|
||||
if (Test-Path $coverageTool) {
|
||||
Invoke-Checked 'coverage-gate' { & $coverageTool }
|
||||
}
|
||||
else {
|
||||
Skip-Gate 'coverage-gate' 'tools/coverage-gate.ps1 not implemented yet'
|
||||
}
|
||||
}
|
||||
|
||||
# --- 7-9. Project-specific gates -------------------------------------------
|
||||
@@ -311,8 +313,12 @@ function Invoke-ProjectGates {
|
||||
# failure (docs/13_CI_CD.md).
|
||||
Write-Step 'rules-validate'
|
||||
$rulesTool = Join-Path $repo 'tools/rules-validate.ps1'
|
||||
if (-not (Test-Path $rulesTool)) { throw 'tools/rules-validate.ps1 is missing; the rules gate cannot be skipped' }
|
||||
Invoke-Checked 'rules-validate' { & $rulesTool }
|
||||
if (Test-Path $rulesTool) {
|
||||
Invoke-Checked 'rules-validate' { & $rulesTool }
|
||||
}
|
||||
else {
|
||||
Skip-Gate 'rules-validate' 'tools/rules-validate.ps1 not implemented yet'
|
||||
}
|
||||
|
||||
# Being plainly identifiable to anti-cheat is a requirement, not packaging
|
||||
# polish (docs/19_SAFETY_AND_ANTICHEAT.md). Reads the built binary, because
|
||||
|
||||
+1
-1
@@ -163,7 +163,7 @@ All screens are `Page`s registered with the navigation page provider and navigat
|
||||
> fields), **the row's executable path under the subtitle and Change executable… since 2026-09-21** (a store import
|
||||
> guesses the executable and everything downstream is keyed on it; the pick re-points the row, which comes back
|
||||
> hooking-off and unconsented like a new game, consent revoked over the pipe first, a block never cleared —
|
||||
> `05_DETECTION` §Library import), **one App per data folder since 2026-09-21** (`Services.SingleInstance`: a named mutex and a named event keyed on a hash of the data directory, claimed in `Program.Main` after Velopack's hooks and before any window; a later start sets the event and exits 0, and the first instance brings its window forward through `ShellHost.Reveal` — from the tray too. Nothing stopped a second App before: the owner's log shows two started 360 ms apart, two tray icons, a second log file. `--diag` never claims), **the guard-bypass switch since 2026-09-21** (`19_SAFETY` §The user's bypass, FR-2.7: a `CardControl` with a `OneWay` toggle under the hooking card, its body text, and — while it is on — a non-closable **Error** `InfoBar` saying so; ON opens `GuardBypassPrompt`, a `ContentDialog` whose Danger primary button is enabled only while the acknowledgement is ticked AND `BYPASS` is typed, `DefaultButton = Close`; OFF needs no dialog; the switch shows the ROW, never the click; a blocked row's hooking toggle becomes usable while the bypass is on and the block's text stays on the page — as "The guard found: … You chose to bypass it", not as "Hooking is disabled for this game", which is what beta.3 printed beside a hooking switch that was ON; a session that started under it reads "· Guard bypassed: <family>" in the list's exit column and carries an Error `InfoBar` in its summary), **Supports** (from `capability_flags`; ~~empty until P4's scan writes it, and the card says so~~ **written by the Agent's detection sweep since P4 PR-1, 2026-09-14** — the rule ids as product names via `CapabilityNames`, "not scanned yet" only until the Agent's next tick) beside
|
||||
> `05_DETECTION` §Library import), **the guard-bypass switch since 2026-09-21** (`19_SAFETY` §The user's bypass, FR-2.7: a `CardControl` with a `OneWay` toggle under the hooking card, its body text, and — while it is on — a non-closable **Error** `InfoBar` saying so; ON opens `GuardBypassPrompt`, a `ContentDialog` whose Danger primary button is enabled only while the acknowledgement is ticked AND `BYPASS` is typed, `DefaultButton = Close`; OFF needs no dialog; the switch shows the ROW, never the click; a blocked row's hooking toggle becomes usable while the bypass is on and the block's text stays on the page; a session that started under it reads "· Guard bypassed: <family>" in the list's exit column and carries an Error `InfoBar` in its summary), **Supports** (from `capability_flags`; ~~empty until P4's scan writes it, and the card says so~~ **written by the Agent's detection sweep since P4 PR-1, 2026-09-14** — the rule ids as product names via `CapabilityNames`, "not scanned yet" only until the Agent's next tick) beside
|
||||
> **Last session measured** (upscaler · resolution, frame generation, the non-N/A chips — accent pills, from the
|
||||
> hooks). Hooking: the toggle is `OneWay` from the row and its command runs `HookingConsent`; a refusal, a
|
||||
> mismatch or a failure is a persistent `InfoBar` on the page (never a toast); a blocked row disables the
|
||||
|
||||
@@ -2,13 +2,6 @@
|
||||
|
||||
Languages: **en** (neutral/default) · **vi** · **ja**. Same `.resx` pattern as the rest of the poli0981 portfolio.
|
||||
|
||||
> **Both string families are given the UI culture explicitly (2026-09-21).** `App.ApplyCulture` sets `Strings.Culture`
|
||||
> AND `FrameLedger.Shared.Strings.Culture`. The second was missing: the safety family fell back to the thread's
|
||||
> `CurrentUICulture`, and a culture set inside the App's async start flows with that async context, not to the
|
||||
> dispatcher's later operations — so on an English Windows a Vietnamese UI showed the consent dialog, the refusal
|
||||
> notices and the guard-bypass card in English. A resource accessor that depends on which thread asks is the defect;
|
||||
> `StringsTests.ApplyingTheUiLanguageSetsTheSafetyFamilyToo` holds it with the thread deliberately left English.
|
||||
|
||||
## Mechanics
|
||||
|
||||
- One `Strings.resx` (+ `Strings.vi.resx`, `Strings.ja.resx`) per assembly that has user-visible text (`App`, `Shared` for error codes). Access through a generated strongly-typed class; **no string literals in XAML/C# for user-visible text** (analyzer TODO: Meziantou MA0011/manual review in PR checklist). **As built (P3 PR-2, 2026-09-13):** the class is `Strings.Designer.cs`, written by `tools/resx-gen.ps1 -Resx <file>` and **committed** — not the SDK's `ResXFileCodeGenerator`, which the SDK-style WPF project does not run — with `Culture`, `ResourceManager`, `Keys`, and one property per key; the audit below fails when it is stale. The first family is `src/FrameLedger.App/Strings.resx` (65 keys); `Shared`'s arrives with PR-4's `Safety_*` text, because an empty family is what the audit refuses.
|
||||
|
||||
+2
-2
@@ -6,7 +6,7 @@ Managed: xUnit.net v3 4.x (the `xunit.v3.mtp-off` variant since 2026-09-21 — `
|
||||
|
||||
The anti-cheat guard is the one component where a bug can cost someone an account. It gets the most rigorous treatment in the codebase:
|
||||
|
||||
**These are Catch2 tests, not xUnit.** `20_OPEN_QUESTIONS` §S13(a) settled the guard into the C++ `FrameLedger.Injector`, so the fail-closed matrix below lives in the native suite and the guard needs seams — injectable enumerator function pointers — before any of these failures can be forced at all. ~~Landing Catch2 is a prerequisite of the guard, not a later nicety (§S15).~~ **Landed long since** — `ctest` runs 31 native suites on every gate (`fl_guard` alone is ~100 s); the sentence was left in the future tense until 2026-09-21.
|
||||
**These are Catch2 tests, not xUnit.** `20_OPEN_QUESTIONS` §S13(a) settled the guard into the C++ `FrameLedger.Injector`, so the fail-closed matrix below lives in the native suite and the guard needs seams — injectable enumerator function pointers — before any of these failures can be forced at all. Landing Catch2 is a prerequisite of the guard, not a later nicety (§S15).
|
||||
|
||||
- Blocklist matching: exact, case-insensitive, prefix rules; every family in `19_SAFETY` §Blocklist seed has a fixture. Two families (Activision Ricochet, Valve VAC) have **no data yet**, so their fixtures must assert that absence explicitly rather than quietly passing on an empty rule set.
|
||||
- **The user's bypass (2026-09-21) has its own proofs, and they are about what it must NOT do.** Native (`[bypass]` in `guard_test.cpp`): a blocklisted target is refused by the plain entry and injected by the acknowledged one with the same family and signal and a verdict that is not `kAllow`; a clean target is a plain allow; a foreign or absent payload is still refused and nothing is loaded; `IsGuardJudgement` is exactly its list. Managed: `GuardMirrorTests` holds the C# list against the native one for every reason; `HookedCaptureGateTests` proves the kill switch, an un-enabled game and a missing consent still refuse with the guard never asked, that an acknowledged request never takes the plain entry (and the reverse), and that a guard which does not know the bypass is the hard gate (the port's default implementation); `HookRequestFromConsentTests` that the fifth input needs a stored record naming its disclosure and the same executable; `GuardSupervisorTests` that a judgement is counted, kept and overruled while a fact still unhooks; `SqliteGuardBypassStoreTests` that it cannot exist for a game nobody added or another binary, touches neither block nor consent, and ends with consent or the executable; `AgentCommandHandlerTests` that the pipe re-checks everything; `GameDetailViewModelTests` that a declined disclosure sends nothing and the switch shows the row.
|
||||
@@ -14,7 +14,7 @@ The anti-cheat guard is the one component where a bug can cost someone an accoun
|
||||
- **Measured error paths that must be named tests** (`spike-notes.md` §1): `ERROR_PARTIAL_COPY (299)` from a suspended target, `ERROR_ACCESS_DENIED (5)` from a protected one, a driver-list parse whose paths are not native paths, and a service query returning `ACCESS_DENIED` — the last of which **cannot be produced on real services by a standard user**, so it exists only as a fake. Every one means REFUSE.
|
||||
- Mid-session detection: simulated late-loading anti-cheat module → `unhookRequested` set, hooks disabled within one frame, session finalized `unhooked_safety`. Cover the **driver** scan too, not only modules: a machine-wide driver can start after injection.
|
||||
- **Absence-of-override test:** no code path may reach the injection primitive without a passing guard result. The mechanism previously described here — a `sealed` token type "only the guard can produce" — does not work and was disproved by compiling (`20_OPEN_QUESTIONS` §S8: C# accessibility flows inward, `CS0122`). The replacement is structural: the guard **owns the chokepoint** and calls the primitive itself, the primitive has internal linkage in the guard's own translation unit so no other TU has a symbol to call, and a build-time check asserts that nothing else references it. A token that escapes can be ignored; a symbol that does not exist cannot.
|
||||
- Static pre-scan: a game directory containing `EasyAntiCheat/` renders `hook_enabled` un-settable; API-level attempt to set it is rejected — including via `SetWatchlist`, which no longer carries hooking state at all (`07_IPC` §The pipe is not a trust boundary). ~~**The toggle half needs persistence and is not built yet**~~ **built in P2/P3**: `SqliteGameConsentStore.RecordGuardBlockAsync` forces `hook_enabled = 0`, `AgentCommandHandler.SetHookEnabledAsync` re-runs the pre-scan and answers `Refused`, and `GameDetailViewModel` disables the toggle on a blocked row (corrected 2026-09-21; the one way past it is `19_SAFETY` §The user's bypass); the scan itself is ctest `fl_prescan`, whose matrix is mostly fail-closed: a listing that FAILED, one that was TRUNCATED, a directory that could not be established, unusable rules, and a missing evidence source must each be *undetermined*, never clean. Two cases exist only to stop the rest passing vacuously — a genuinely clean directory must be **allowed**, and a name matching the wrong group (a directory named like a `files` entry) must **not** fire. One case removes a family from the rules and asserts the hit disappears, which is what proves there is a single matcher rather than a second one that happens to agree.
|
||||
- Static pre-scan: a game directory containing `EasyAntiCheat/` renders `hook_enabled` un-settable; API-level attempt to set it is rejected — including via `SetWatchlist`, which no longer carries hooking state at all (`07_IPC` §The pipe is not a trust boundary). **The toggle half needs persistence and is not built yet**; the scan itself is ctest `fl_prescan`, whose matrix is mostly fail-closed: a listing that FAILED, one that was TRUNCATED, a directory that could not be established, unusable rules, and a missing evidence source must each be *undetermined*, never clean. Two cases exist only to stop the rest passing vacuously — a genuinely clean directory must be **allowed**, and a name matching the wrong group (a directory named like a `files` entry) must **not** fire. One case removes a family from the rules and asserts the hit disappears, which is what proves there is a single matcher rather than a second one that happens to agree.
|
||||
|
||||
## Native unit tests (Catch2)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ Mandatory conventions for all XAML/C# in `FrameLedger.App`. WPF UI = lepoco's Fl
|
||||
|
||||
| Package (NuGet id) | Pin | Notes |
|
||||
|---|---|---|
|
||||
| `WPF-UI` | **= 4.3.0** (exact; bump deliberately) | Assembly/namespace is `Wpf.Ui`. Targets `net8.0-windows` → resolves cleanly for our `net10.0-windows10.0.22621.0` TFM (`12_BUILD` §Managed build; this row said `19041` until 2026-09-21, which is no TFM this repository ever built — `Directory.Build.props` has been `22621` with a 19045 floor throughout) |
|
||||
| `WPF-UI` | **= 4.3.0** (exact; bump deliberately) | Assembly/namespace is `Wpf.Ui`. Targets `net8.0-windows` → resolves cleanly for our `net10.0-windows10.0.19041.0` TFM (`12_BUILD` §Managed build) |
|
||||
| `WPF-UI.Abstractions` | transitive | Navigation abstractions (`INavigationViewPageProvider`) |
|
||||
| `WPF-UI.DependencyInjection` | match `WPF-UI` | DI glue (`services.AddNavigationViewPageProvider()`); verify exact id/version at scaffold |
|
||||
| `WPF-UI.Tray` | **not used** | Tray stays on H.NotifyIcon.Wpf (CLAUDE.md stack table) |
|
||||
|
||||
@@ -374,19 +374,6 @@ The list exists twice — `fl::guard::IsGuardJudgement` and `AntiCheatVerdict.Is
|
||||
3. The App writes nothing. It sends `SetGuardBypass` (`07_IPC`); the Agent refuses any disclosure version but its own (`GuardBypassDisclosure.Version`), re-reads the executable, and stamps `games.guard_bypass_at` + `guard_bypass_disclosure_version` (schema 0007) through `IGuardBypassStore` — a port of its own, so nothing that can grant consent can by the same call overrule the guard.
|
||||
4. It enables nothing. Hooking is still its own switch and its own FR-2.1 dialog; with the bypass recorded, `SetHookEnabled` still runs the pre-scan and **still writes the finding** (`hook_blocked_reason` stays on the row and stays true) and then stamps the consent beside it, answering `prescan: "bypassed"`.
|
||||
|
||||
**What it cannot do, measured on its first real use (2026-09-21, the owner, ELDEN RING under Easy Anti-Cheat).** A
|
||||
kernel anti-cheat does not only detect a loaded DLL; its driver strips other processes' handles to the game. From the
|
||||
Agent that looks like this: the watcher sees the process (its image path is readable with limited rights), and
|
||||
`TargetResolver` cannot read its main module — every candidate exists and none can be opened. That is
|
||||
`SessionEndReason.TargetUnreadable` since 2026-09-21 (it was reported as `TargetAmbiguous`, "more than one process is
|
||||
running it", about one process; reached the user as a toast reading `InjectFailed: TargetAmbiguous`; and the one-second
|
||||
session was discarded for being short — so with the bypass ON the whole visible result was nothing). **The bypass does
|
||||
not change this and nothing will be built that does**: it overrules FrameLedger's own refusal, and a process another
|
||||
product's driver has closed to us stays closed — opening it anyway would be defeating that product, which is rule 3,
|
||||
not rule 2. The user now gets a persistent notice that says so (`Safety_Refused_TargetUnreadable`), the bypass
|
||||
disclosure says it before they accept (`GuardBypassDisclosure.Version` is `/2` for that sentence), and
|
||||
`legal/DISCLAIMER.md` §2A says it. The same reason covers a game that runs as administrator while the Agent does not.
|
||||
|
||||
**How it ends.** Turning the switch off (no dialog needed to restore the guard); turning hooking off (`RevokeAsync` clears it — the row returns to its safest state); the executable changing (`HookRequest.FromConsent` drops it on a fingerprint mismatch exactly as it drops consent, and *Change executable…* clears the columns).
|
||||
|
||||
**During a session.** `GuardSupervisor` still scans every 30 s and the tick still counts — the Overlay's own stop is fed by it. A scan that refuses on a *judgement* is kept (`LastVerdict`), counted (`JudgementsOverruled`) and does not unhook: it is the refusal the user overruled, re-discovered. A refusal that is not a judgement still unhooks.
|
||||
|
||||
@@ -1356,82 +1356,6 @@ charts (6) after Games (5) because the summary opens from the Sessions tab; Sett
|
||||
- **D17 — `FL_MOCK`, if the owner wants it, is `--serve --mock` under `--data-dir` only** (D6's shape), so a
|
||||
synthetic session can never land in the profile's ledger.
|
||||
|
||||
## 0.1.0-beta.3 (2026-09-21) — what it decided, and the traps it paid for
|
||||
|
||||
*PRs #204-#210. Status is where status lives (`CHANGELOG.md` `[0.1.0-beta.3]`); this is only what no other file carries.*
|
||||
|
||||
**Decisions (owner, 2026-09-21).**
|
||||
- **D18 — the guard has one override, and its shape is fixed.** Per game, off by default, never global, a two-act
|
||||
disclosure stamped by the Agent, overruling the guard's JUDGEMENT only, never changing HOW FrameLedger injects.
|
||||
`19_SAFETY` §The user's bypass is the specification and CLAUDE.md rule 2 carries it as a rule. The owner chose this
|
||||
over a global switch and over a variant that kept kernel-level families refused. **Do not widen it**: no settings key,
|
||||
no CLI verb (`--console` has none on purpose), no rules-file field. A Vulkan title the guard refuses stays refused.
|
||||
- **D19 — the DLSS preset derived from the render scale is STILL not shown.** `Domain.Metrics.UpscalerNames` names the
|
||||
measured byte only; §7a's decision stands open. The driver-reported rung reached the App, identity only.
|
||||
- **D20 — the bug bundle does not get the machine's hardware.** `sysinfo.json`'s keys are the issue link's prefill;
|
||||
`--diag` and Settings ▸ System (with Copy) carry it instead.
|
||||
|
||||
**Owed by the owner after this release.** `20_OPEN_QUESTIONS` M10 (one elevated session with PawnIO beside a reference
|
||||
tool decides whether `cpu_temp` stays); a look at the light theme's pills, the bypass dialog and Settings ▸ System in the
|
||||
running App — no FrameLedger binary was run against the owner's data folder in the session that built them; the ja
|
||||
review of `Safety_Bypass_*`, which ships as English until signed.
|
||||
|
||||
**Traps.**
|
||||
- **xUnit.net v3 4.x defaults to Microsoft Testing Platform v2.** `build.ps1` is VSTest-shaped (collector, `results.trx`);
|
||||
the projects reference `xunit.v3.mtp-off`. Moving to MTP is a `build.ps1` change, never a version bump.
|
||||
- **4.0.1's scheduler found a race 3.2.2 never did**: test classes that WRITE the static `Strings.Culture` must share
|
||||
`StringsCultureCollection`. A new App test that sets the culture and is not in it will fail one run in N.
|
||||
- **A bash heredoc mangles apostrophes and `\\`, even quoted.** Every patch script in this session that carried C#
|
||||
verbatim strings, `\n` escapes or prose with `'` was written with the Write tool and run by path.
|
||||
- **A WPF page property named `System` does not compile** — the generated `.g.cs` resolves `System.` against it.
|
||||
- **NSubstitute: never build a substitute inside another's `Returns(...)`** (`CouldNotSetReturnDueToNoLastCall`).
|
||||
- **Branch protection requires an up-to-date branch.** A small PR merged in the middle of a train puts every open PR
|
||||
`BEHIND`; `gh pr update-branch N` and a second CI cycle is the price. Merge the train in order and keep side PRs out.
|
||||
- **`guard_test.cpp`'s native-log test slept a fixed 1500 ms** and was read between two lines on a loaded runner; it
|
||||
polls now. Record a flake on the PR BEFORE `gh run rerun --failed` erases it.
|
||||
|
||||
## 0.1.0-beta.4 (2026-09-21) — four faults from beta.3's first day
|
||||
|
||||
*Status is `CHANGELOG.md` `[0.1.0-beta.4]`; this is what no other file carries.*
|
||||
|
||||
**Decision (D21).** A process an anti-cheat driver protects is `TargetUnreadable`, and **the bypass stops there**: D18's
|
||||
override overrules FrameLedger's own guard; it is not, and may not become, a way past another product's protection.
|
||||
Any proposal to "make the bypass work on EAC titles" is rule 3, not rule 2 — refuse it.
|
||||
|
||||
**Found and NOT fixed — each needs its own PR.**
|
||||
- **A refused session is not recorded, though the notice says it is.** `Notice_Refused_Recording` ("the session is still
|
||||
recorded — duration and hardware telemetry") is appended to every refusal, and `CaptureSession` returns at the
|
||||
refusal: the run lasts about a second and `SessionFinalizer` discards it as under the minimum length. CLAUDE.md's
|
||||
Tier 2 ("duration + sensors + the reason") has no producer for a refusal. The new `TargetUnreadable` notice does not
|
||||
make the claim; the older refusals still do.
|
||||
- **A released Overlay logs its build as `v0.1.0-beta.3-dirty`**: the CI checkout is dirty by the time CMake runs
|
||||
`git describe`. Both sides of the handshake compile the same string, so nothing breaks; it is a release that calls
|
||||
itself dirty.
|
||||
- ~~**An install over a running Agent half-replaces the folder** (three failed starts, `Microsoft.Data.Sqlite` not
|
||||
found).~~ **A GUESS, WITHDRAWN the same evening, and it had already been published in beta.4's notes.** Nothing was
|
||||
installed between the failures (20:59–21:01) and the start that worked (21:02); the PC had been restarted at 20:57
|
||||
and was again at 21:02 (System log 1074), and the owner's external USB drive was failing all evening. The three
|
||||
failed starts are UNEXPLAINED. What is still true and still unbuilt: `Setup.exe` run by hand does not stop the Agent,
|
||||
and only the CHANGELOG says to.
|
||||
- **A GF2 session ended `SafetyUnhook` 35 s in (2026-09-21 21:45) and nothing recorded which finding fired.** ~~read it
|
||||
the next time it happens before guessing~~ **Mostly explained by the owner's report:** the game is on the failing
|
||||
drive, `GF2_Exilium.exe` crashed at 21:45:50 with `0xc0000006` (in-page I/O error, Application log 1000/1005, eleven
|
||||
Ntfs errors in that minute), and the Agent saved the session at 21:45:52. The 30 s re-scan reads the game's directory
|
||||
(check 4) and the process; either failing is a refusal by design, so a dying drive reads as a safety unhook. **Open:**
|
||||
that row says `UnhookedSafety` about a game Windows says crashed — whether a crash witness should outrank the unhook
|
||||
in `ExitStatusMapper` is a decision, not a bug fix. The log line's new `guard=` detail will say which check it was.
|
||||
- **Read Windows' event logs before attributing a symptom** (`Get-WinEvent` System: disk 51/153, UASPStor 129, Ntfs;
|
||||
Application: 1000/1005). On 2026-09-21 the first pass published one cause that was wrong and left one 'unknown' that
|
||||
those two logs answered in a minute.
|
||||
|
||||
**Traps.**
|
||||
- **`CultureInfo.CurrentUICulture` set inside an `async` start does not reach later dispatcher operations.** A resource
|
||||
accessor with no explicit `Culture` follows whichever thread asks. Give every string family its culture explicitly.
|
||||
- **`TargetResolver` counts a process it cannot read, and zero readable + some unreadable is not "ambiguous".** A test
|
||||
against a real protected process exists (`csrss.exe`); it needs no fixture and runs elevated or not.
|
||||
- **`Mutex` is thread-affine**: `SingleInstance` is claimed and disposed on `Main`'s thread; its tests are synchronous
|
||||
on purpose.
|
||||
|
||||
## Owner-only — no PR can close these
|
||||
|
||||
1. **§S23-2 — branch protection.** `Rules / validate` is not a required status check on
|
||||
|
||||
+4
-9
@@ -11,12 +11,11 @@
|
||||
that changes what FrameLedger.Overlay or the capture host does; date the change.
|
||||
HTML comments are not part of the block.
|
||||
-->
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-09-21.** The software is a beta; its latest
|
||||
> **pre-release is `0.1.0-beta.4`** (2026-09-21), an unsigned installer built from that tag with its
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-09-17.** The software is pre-alpha; its latest
|
||||
> **pre-release is `0.1.0-beta.2`** (2026-09-17), an unsigned installer built from that tag with its
|
||||
> checksums published beside it. The source holds the desktop app
|
||||
> (library, store import, charts, settings) and the background Agent, which records a session when a
|
||||
> game in the library runs, injects only into games you enabled and only past the safety guard (or,
|
||||
> for a game whose guard bypass you turned on yourself, past your own acceptance of that risk), and
|
||||
> game in the library runs, injects only into games you enabled and only past the safety guard, and
|
||||
> stores sessions in a local database. What that path measures:
|
||||
>
|
||||
> - **Frame times and output resolution:** measured from the present call for Direct3D 11/12 and
|
||||
@@ -67,11 +66,7 @@
|
||||
> half of the suspicious-module rule. During every capture the Agent re-runs the checks every 30 s and
|
||||
> stops capturing on a refusal: a Direct3D or OpenGL game's hooks are removed, and the Vulkan layer
|
||||
> goes passthrough. A global switch in Settings turns all hooking off, and a running capture stops at
|
||||
> its next check; it can only refuse, never permit. **There is one override, and only one:** a per-game
|
||||
> "bypass the anti-cheat guard" switch, off by default, that you can turn on only by accepting its own
|
||||
> warning (a tick and a typed word). With it on, FrameLedger injects into that game even where the
|
||||
> checks find anti-cheat, the 30 s re-check no longer stops the capture for that finding, and every
|
||||
> session started that way is marked. It never changes HOW FrameLedger injects: nothing is hidden.
|
||||
> its next check; it can only refuse, never permit. There is no override anywhere.
|
||||
>
|
||||
> Where a value is not measured it reads `N/A`, with two exceptions: FPS then shows Presented FPS with a
|
||||
> note on what it may include, and ray-tracing flags may show a value you set yourself, labelled as
|
||||
|
||||
+6
-83
@@ -1,6 +1,6 @@
|
||||
# FrameLedger — Disclaimer
|
||||
|
||||
**Version:** 2.4 · **Effective:** {{RELEASE_DATE}}
|
||||
**Version:** 2.2 · **Effective:** {{RELEASE_DATE}}
|
||||
|
||||
> **How this document is kept true.** The statement of what FrameLedger measures (§4) is `legal/ACCURACY.md`,
|
||||
> embedded here and in `README.md` and bound to its source by `tools/accuracy-check.ps1`, which fails the build when a
|
||||
@@ -8,22 +8,6 @@
|
||||
> the software — six re-counts between 2026-08-04 and 2026-09-15; that history is `docs/legal-drift-history.md`,
|
||||
> moved out of the text you accept on 2026-09-16 and kept in full.
|
||||
|
||||
## 0. This is pre-release (beta) software
|
||||
|
||||
**FrameLedger is a beta.** Every build published so far is a pre-release. It has been tested on a small number of
|
||||
machines and games, and **it certainly still contains bugs — some of them not yet known to anyone.** Features can
|
||||
change or disappear between builds, recorded data can turn out to be wrong, and an update can require your data to be
|
||||
migrated.
|
||||
|
||||
By installing or running a pre-release build you accept that:
|
||||
|
||||
- it may crash, hang, fail to record, or record wrongly, and may cause the game you are measuring to do the same;
|
||||
- **the developer is not responsible for any incident, loss or damage that results**, including lost progress, corrupted
|
||||
saves, lost recordings, wasted time, or anything else described in this document;
|
||||
- no support, fix, or response time is promised. Reports are welcome and are read; nothing is owed in return.
|
||||
|
||||
If that is not acceptable to you, do not use a pre-release build.
|
||||
|
||||
## 1. How FrameLedger measures (read this first)
|
||||
|
||||
To measure what a game is *actually* doing — its real render resolution, which upscaler is running at which quality preset, whether frame generation is active, whether rays are being traced — FrameLedger loads a component (`FrameLedger.Overlay.dll`) **inside the game process** and observes calls the game makes to graphics APIs. Vulkan titles use a standard Vulkan layer instead. This is the same class of technique used by widely-used tools such as frame-rate overlays, screen-recording software, and post-processing injectors.
|
||||
@@ -53,7 +37,7 @@ Install it somewhere only you can write to, and verify the published SHA-256 che
|
||||
FrameLedger is designed to reduce that risk substantially:
|
||||
|
||||
- Injection is **off by default** and must be enabled by you **per game**.
|
||||
- Before injecting, and every 30 seconds afterwards, FrameLedger scans for known anti-cheat and anti-tamper components. **If it finds one, it refuses to inject; if a session is already running, it stops at the next scan.** No setting turns this off globally; the one exception is the per-game bypass described in §2A, which only you can turn on, one game at a time. Because the scan runs every 30 seconds rather than continuously, anti-cheat that loads mid-session may be present for **up to 30 seconds** before FrameLedger detects it and stops.
|
||||
- Before injecting, and every 30 seconds afterwards, FrameLedger scans for known anti-cheat and anti-tamper components. **If it finds one, it refuses to inject; if a session is already running, it stops at the next scan.** There is no setting to override this. Because the scan runs every 30 seconds rather than continuously, anti-cheat that loads mid-session may be present for **up to 30 seconds** before FrameLedger detects it and stops.
|
||||
|
||||
**And there is a second, longer window you should know about.** The part of FrameLedger running inside the game also stops on its own if it loses contact with the part doing the scanning — because a scanner that has stopped cannot protect you. It waits **65 seconds** before concluding that contact is lost, so that one delayed scan on a busy machine does not end your session. In the worst case those windows combine: if the scanner stops at the moment anti-cheat appears, the component inside the game may keep running for up to **65 seconds** afterwards. That number is 65 and not 30, and this document says so rather than leaving the 30 above to imply it.
|
||||
|
||||
@@ -79,34 +63,6 @@ FrameLedger is designed to reduce that risk substantially:
|
||||
|
||||
**FrameLedger is intended for offline and single-player play. If you enable injection for a game with any online or competitive component, you do so entirely at your own risk and are solely responsible for the consequences, including compliance with that game's terms of service.**
|
||||
|
||||
## 2A. The guard bypass — entirely at your own risk
|
||||
|
||||
Since version 0.1.0-beta.3 each game's page has a switch labelled **"Bypass the anti-cheat guard (at your own risk)"**.
|
||||
It is **off by default**, it applies to that one game only, and there is no way to turn it on for all games at once.
|
||||
|
||||
Turning it on tells FrameLedger to inject into that game **even where its checks find anti-cheat or anti-tamper
|
||||
software** — that is, in exactly the situation §2 says can get an account banned. The checks still run and what they
|
||||
found is still recorded; they simply no longer stop the injection or the running session for that game. FrameLedger
|
||||
still does nothing to hide itself: it loads under its real name and is fully visible to the anti-cheat.
|
||||
|
||||
**It does not make FrameLedger work everywhere.** Several anti-cheat systems protect the game's process so that no
|
||||
other program can open it. FrameLedger cannot measure such a game with or without the bypass, it says so when that
|
||||
happens, and it will never try to get around another product's protection. Turning the bypass on for such a game
|
||||
gains you nothing and still marks your intent to load software into it.
|
||||
|
||||
You can turn it on only by accepting a warning inside the application, by **both** ticking a statement and typing a
|
||||
word. **BY TURNING IT ON YOU ACCEPT THE ENTIRE RISK YOURSELF.** The developer and the contributors accept **no
|
||||
responsibility and no liability whatsoever** for anything that happens on your side as a result — including, without
|
||||
limitation, an account that is flagged, suspended or **permanently banned** (in that game or in others from the same
|
||||
publisher or platform), purchases, progress or data that are lost, a game that crashes or will not start, or any
|
||||
dispute with a publisher or platform under their terms of service. Nobody can undo a ban for you.
|
||||
|
||||
Every session started with the bypass on is permanently marked as such in the application and in every export,
|
||||
together with what the checks found. The bypass turns itself off when you turn hooking off for the game or when the
|
||||
game's executable changes.
|
||||
|
||||
**If you are not certain, leave it off.**
|
||||
|
||||
## 3. Stability
|
||||
|
||||
Software running inside another process can, in principle, destabilize it. FrameLedger guards every intercepted call, disables itself automatically after repeated internal faults, and automatically stops injecting into a game that crashes shortly after injection twice. Despite this, the developer is not responsible for crashes, lost progress, corrupted saves, or any other loss arising from use of the software. **Save your game before benchmarking.**
|
||||
@@ -116,12 +72,11 @@ Software running inside another process can, in principle, destabilize it. Frame
|
||||
Frame timing is derived from high-resolution timestamps taken at the moment the game presents each frame; upscaling, frame-generation and ray-tracing state are read from the parameters the game passes to those APIs. This is substantially more accurate than inferring settings from files on disk, but **no measurement is guaranteed to be exact**:
|
||||
|
||||
<!-- accuracy-block:begin -->
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-09-21.** The software is a beta; its latest
|
||||
> **pre-release is `0.1.0-beta.4`** (2026-09-21), an unsigned installer built from that tag with its
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-09-17.** The software is pre-alpha; its latest
|
||||
> **pre-release is `0.1.0-beta.2`** (2026-09-17), an unsigned installer built from that tag with its
|
||||
> checksums published beside it. The source holds the desktop app
|
||||
> (library, store import, charts, settings) and the background Agent, which records a session when a
|
||||
> game in the library runs, injects only into games you enabled and only past the safety guard (or,
|
||||
> for a game whose guard bypass you turned on yourself, past your own acceptance of that risk), and
|
||||
> game in the library runs, injects only into games you enabled and only past the safety guard, and
|
||||
> stores sessions in a local database. What that path measures:
|
||||
>
|
||||
> - **Frame times and output resolution:** measured from the present call for Direct3D 11/12 and
|
||||
@@ -172,11 +127,7 @@ Frame timing is derived from high-resolution timestamps taken at the moment the
|
||||
> half of the suspicious-module rule. During every capture the Agent re-runs the checks every 30 s and
|
||||
> stops capturing on a refusal: a Direct3D or OpenGL game's hooks are removed, and the Vulkan layer
|
||||
> goes passthrough. A global switch in Settings turns all hooking off, and a running capture stops at
|
||||
> its next check; it can only refuse, never permit. **There is one override, and only one:** a per-game
|
||||
> "bypass the anti-cheat guard" switch, off by default, that you can turn on only by accepting its own
|
||||
> warning (a tick and a typed word). With it on, FrameLedger injects into that game even where the
|
||||
> checks find anti-cheat, the 30 s re-check no longer stops the capture for that finding, and every
|
||||
> session started that way is marked. It never changes HOW FrameLedger injects: nothing is hidden.
|
||||
> its next check; it can only refuse, never permit. There is no override anywhere.
|
||||
>
|
||||
> Where a value is not measured it reads `N/A`, with two exceptions: FPS then shows Presented FPS with a
|
||||
> note on what it may include, and ray-tracing flags may show a value you set yourself, labelled as
|
||||
@@ -190,20 +141,6 @@ Frame timing is derived from high-resolution timestamps taken at the moment the
|
||||
|
||||
Do not use FrameLedger's output as the sole basis for purchasing, warranty, overclocking, or safety decisions.
|
||||
|
||||
## 4A. Your PC must meet the game's own requirements
|
||||
|
||||
FrameLedger measures a game; it does not make one run. **Make sure your PC meets at least the minimum system
|
||||
requirements published by the game's developer or publisher before you measure it** — read them first.
|
||||
|
||||
If you run FrameLedger with a game on a machine below that game's minimum requirements, low frame rates, stutter,
|
||||
crashes, overheating, failures to start, and readings that look wrong are consequences of that choice. **They are your
|
||||
responsibility, not the developer's**, and they are not defects of FrameLedger. The same applies to unstable overclocks
|
||||
or undervolts, overheating or failing hardware, out-of-date or beta graphics drivers, a Windows installation that is
|
||||
missing updates, and other overlays, injectors or "optimizer" tools running at the same time.
|
||||
|
||||
FrameLedger adds a small cost of its own while it records. On a machine that is already at its limit, that cost can
|
||||
be the difference between a game that runs and one that does not. Turn hooking off for that game if so.
|
||||
|
||||
## 5. Hardware and drivers
|
||||
|
||||
FrameLedger reads GPU telemetry through vendor libraries that ship with your graphics driver. It **only reads** — it never changes clocks, fan curves, power limits, or any other hardware setting. Optional CPU-temperature support relies on the separate third-party **PawnIO** driver, which you install at your own discretion under its own license; some anti-cheat systems object to third-party kernel drivers regardless of what they are used for.
|
||||
@@ -216,20 +153,6 @@ Windows and DirectX are trademarks of Microsoft Corporation. NVIDIA, DLSS, Refle
|
||||
|
||||
If you publish benchmarks or videos using FrameLedger data, you are responsible for how you present the numbers. The software deliberately shows native frame rate alongside frame-generation-boosted output, and labels which measurement tier produced each session; keeping both visible in published material is strongly encouraged.
|
||||
|
||||
## 7A. Your data, unsigned builds, and third parties
|
||||
|
||||
- **Your recordings are yours to back up.** They live in one folder on your PC (`%LOCALAPPDATA%\FrameLedger`). A bug, an
|
||||
update, a disk problem or an uninstall can damage or remove them. The developer cannot recover them.
|
||||
- **Builds are not code-signed.** Windows SmartScreen and antivirus products may warn about or block the installer or
|
||||
the component loaded into a game. Verify the download against the published `SHA256SUMS.txt`; only download from the
|
||||
project's own GitHub Releases page. A build obtained anywhere else is not the developer's and is not covered by
|
||||
anything here.
|
||||
- **FrameLedger is not affiliated with any game, publisher, platform, GPU vendor or anti-cheat vendor** (§6). None of
|
||||
them supports it. If a game's or a platform's terms forbid third-party software that loads into the game, using
|
||||
FrameLedger with it is your decision and your responsibility.
|
||||
- **Numbers are for your own information.** Do not rely on them for a purchase, a warranty claim, a refund dispute, a
|
||||
review you are paid for, or any decision where being wrong costs money, without checking them another way (§4).
|
||||
|
||||
## 8. No professional advice
|
||||
|
||||
Nothing in the software or its documentation constitutes professional, legal, or engineering advice.
|
||||
|
||||
+2
-13
@@ -1,6 +1,6 @@
|
||||
# FrameLedger — End User License Agreement (EULA)
|
||||
|
||||
**Version:** 1.1 · **Effective:** {{RELEASE_DATE}}
|
||||
**Version:** 1.0 · **Effective:** {{RELEASE_DATE}}
|
||||
|
||||
This End User License Agreement ("Agreement") applies to **FrameLedger** ("the Software"), developed and published by **poli0981** ("the Developer"), contactable at <contact@poli0981.dev> — see <https://poli0981.dev/> for other contact channels.
|
||||
|
||||
@@ -14,7 +14,7 @@ The Software records game performance data, hardware telemetry (temperatures, lo
|
||||
|
||||
## 2A. Code injection — your responsibility
|
||||
|
||||
To measure rendering settings accurately, the Software can load a component into a game process, **but only for games you have individually enabled**, after a consent prompt that explains the risk. The Software refuses to do so when it detects anti-cheat or anti-tamper software. It provides exactly one means to override that refusal: a per-game "bypass the anti-cheat guard" switch, off by default, which you can turn on only by accepting a separate in-application warning by two distinct acts (Disclaimer §2A). **If you turn it on, you do so entirely at your own risk, and the Developer accepts no responsibility or liability for any consequence**, including a suspended or permanently banned account.
|
||||
To measure rendering settings accurately, the Software can load a component into a game process, **but only for games you have individually enabled**, after a consent prompt that explains the risk. The Software refuses to do so when it detects anti-cheat or anti-tamper software, and provides no means to override that refusal.
|
||||
|
||||
By enabling this feature for a game, you confirm that:
|
||||
|
||||
@@ -30,17 +30,6 @@ By enabling this feature for a game, you confirm that:
|
||||
|
||||
The Software records without injecting unless you enable injection for a specific game. In that mode it records only the session's duration and whatever hardware sensor data is available, indicates that mode on the session, and reports unavailable measurements as such rather than estimating them. Neither mode requires the Software's agent to run with administrator rights.
|
||||
|
||||
## 2B. Pre-release software, and your PC
|
||||
|
||||
The Software is currently distributed only as **pre-release (beta) builds**, which certainly still contain defects
|
||||
(Disclaimer §0). You use a pre-release build at your own risk, and the Developer is not responsible for any incident
|
||||
that results.
|
||||
|
||||
You are responsible for making sure your PC meets at least the minimum system requirements published by the developer
|
||||
or publisher of each game you measure. Problems that arise from running a game below its minimum requirements, or on
|
||||
unstable, overheating, overclocked or faulty hardware, are your responsibility and not the Developer's (Disclaimer
|
||||
§4A).
|
||||
|
||||
## 3. Acceptance
|
||||
|
||||
By clicking "Accept" in the first-run dialog or by using the Software, you confirm that you have read this Agreement, the Disclaimer, and the Privacy Policy.
|
||||
|
||||
@@ -48,7 +48,6 @@ FrameLedger is licensed under **GPL-3.0-only**. It includes or depends on the th
|
||||
| **Transitive, under ScottPlot.WPF** — SkiaSharp, HarfBuzzSharp and their Win32 native assets; OpenTK 4.x; OpenTK.GLWpfControl; OpenTK.redist.glfw | 2-D rendering, text shaping, OpenGL host | MIT; GLFW is zlib (its COPYING.md) | The native Skia and HarfBuzz builds carry their own third-party notices, shipped once each in `legal/licenses/nuget/notices-*.txt`. OpenTK.GLWpfControl declares only a URL (reviewed override, like Mono.Posix) |
|
||||
| **Transitive** — Microsoft.Extensions.* (Hosting, DependencyInjection, Logging, Configuration, Options, …), Serilog.Extensions.*, Serilog.Sinks.Console, SQLite (SourceGear's native build), SQLitePCLRaw.* | Host, DI, logging plumbing; the SQLite engine | MIT; Apache-2.0; SQLite is public domain | The complete, versioned list is `legal/licenses/nuget/INDEX.md` — 77 packages on 2026-09-15 |
|
||||
| Roslynator, Meziantou.Analyzer, VS Threading Analyzers (build-time) | Static analysis | Apache-2.0 / MIT | Build-time only |
|
||||
| **Test-time only, never shipped** — xUnit.net v3 4.x (`xunit.v3.mtp-off`, `xunit.runner.visualstudio`), Microsoft.NET.Test.Sdk, coverlet.collector, FluentAssertions 7.x, NSubstitute; Catch2 (native) | Unit and integration tests, coverage | Apache-2.0 (xUnit.net, <https://github.com/xunit/xunit>; FluentAssertions **7.x only**) · MIT (Test.Sdk, coverlet) · BSD-3-Clause (NSubstitute) · BSL-1.0 (Catch2) | Not named by this table until 2026-09-21. None of them is in a published package: `12_BUILD` publishes App and Agent only, `tools/package-closure-check.ps1` keeps the test projects out of that closure, and `legal/licenses/nuget/` therefore lists none of them. xUnit.net moved 3.2.2 → 4.0.1 on 2026-09-21, same licence. **FluentAssertions is pinned to `[7.2.2]` on purpose**: 8.x is Xceed's Community Licence, not an OSI licence (`Directory.Packages.props`, `20_OPEN_QUESTIONS` §G). Catch2's text is `legal/licenses/catch2-BSL-1.0.txt` |
|
||||
|
||||
## GPU telemetry — what is bundled and what is not
|
||||
|
||||
|
||||
@@ -276,7 +276,7 @@ internal sealed class ConsoleVerbs(IServiceProvider services, AgentPaths paths)
|
||||
return result.Reason switch
|
||||
{
|
||||
SessionEndReason.TargetExited or SessionEndReason.Running => _exitOk,
|
||||
SessionEndReason.TargetNotRunning or SessionEndReason.TargetAmbiguous or SessionEndReason.TargetUnreadable
|
||||
SessionEndReason.TargetNotRunning or SessionEndReason.TargetAmbiguous
|
||||
or SessionEndReason.TargetCannotBePinned or SessionEndReason.LaunchCannotStart => _exitTargetNotResolved,
|
||||
SessionEndReason.AttachRefused => _exitAttachRefused,
|
||||
SessionEndReason.SafetyUnhook or SessionEndReason.SupervisionLost or SessionEndReason.KillSwitchEngaged
|
||||
|
||||
@@ -51,9 +51,6 @@ public partial class App : System.Windows.Application
|
||||
private static string CrashDumper => Path.Combine(AppContext.BaseDirectory, "FrameLedger.Agent.exe");
|
||||
|
||||
private IHost? _host;
|
||||
|
||||
/// <summary>This process's claim on the data folder (<see cref="SingleInstance"/>); null under <c>--diag</c> and in tests.</summary>
|
||||
internal SingleInstance? Instance { get; init; }
|
||||
private LedgerDatabase? _db;
|
||||
private Task? _run;
|
||||
|
||||
@@ -103,19 +100,6 @@ public partial class App : System.Windows.Application
|
||||
_host = BuildHost(_db, appearance, registered, closePolicy);
|
||||
await _host.StartAsync().ConfigureAwait(true);
|
||||
Log.Information("ui: started ({Version}), ledger {Ledger}", UiIdentity.Version, UiPaths.Database);
|
||||
|
||||
// A second start of the App hands over to this one: bring the window forward, from the tray too.
|
||||
if (Instance is not null)
|
||||
{
|
||||
// Captured HERE, on the dispatcher: the event arrives on a thread-pool thread and is posted back.
|
||||
IHost host = _host;
|
||||
var ui = new UiThread();
|
||||
Instance.RevealRequested += (_, _) => ui.Post(() =>
|
||||
{
|
||||
Log.Information("ui: another start handed over to this instance; revealing the window");
|
||||
host.Services.GetRequiredService<ShellHost>().Reveal();
|
||||
});
|
||||
}
|
||||
await WaitForStopRequestAsync(_host).ConfigureAwait(true);
|
||||
}
|
||||
catch (Exception ex) when (ex is not OutOfMemoryException)
|
||||
@@ -241,12 +225,6 @@ public partial class App : System.Windows.Application
|
||||
CultureInfo.DefaultThreadCurrentUICulture = culture;
|
||||
CultureInfo.CurrentUICulture = culture;
|
||||
Strings.Culture = culture;
|
||||
|
||||
// THE SAFETY FAMILY TOO (2026-09-21). FrameLedger.Shared's Strings had no culture of its own and fell back to the
|
||||
// thread's - and CurrentUICulture set inside this async start does not reach the dispatcher's later operations,
|
||||
// so on an English Windows a Vietnamese UI showed the consent dialog, the refusal notices and the guard-bypass
|
||||
// card in English (the owner's screenshot, beta.3). An explicit culture does not depend on which thread asks.
|
||||
Shared.Strings.Culture = culture;
|
||||
}
|
||||
|
||||
private static IHost BuildHost(LedgerDatabase db, AppearanceSettings appearance, RegisteredSettings registered, WindowClosePolicy closePolicy)
|
||||
|
||||
@@ -24,13 +24,7 @@
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Grid.Row="0" Grid.ColumnSpan="2" Margin="0,0,0,12">
|
||||
<!-- The short version, in the user's language (2026-09-21). It summarises; the documents below are the terms. -->
|
||||
<Border Padding="12" CornerRadius="6" Background="{DynamicResource SystemFillColorCautionBackgroundBrush}">
|
||||
<ui:TextBlock Foreground="{DynamicResource TextFillColorPrimaryBrush}" Text="{x:Static vm:FirstRunViewModel.LegalSummary}" TextWrapping="Wrap" />
|
||||
</Border>
|
||||
<ui:TextBlock Margin="0,10,0,0" Appearance="Secondary" Text="{x:Static vm:FirstRunViewModel.LegalBody}" TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
<ui:TextBlock Grid.Row="0" Grid.ColumnSpan="2" Margin="0,0,0,12" Appearance="Secondary" Text="{x:Static vm:FirstRunViewModel.LegalBody}" TextWrapping="Wrap" />
|
||||
<ListBox Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Margin="0,0,12,0"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using FrameLedger.App.Services;
|
||||
using FrameLedger.App.Update;
|
||||
using Velopack;
|
||||
|
||||
@@ -17,25 +16,8 @@ internal static class Program
|
||||
private static int Main()
|
||||
{
|
||||
VelopackHooks.Configure(VelopackApp.Build()).Run();
|
||||
|
||||
// One App per data folder (2026-09-21): a second start hands over to the first and exits. --diag opens no window
|
||||
// and must work beside a running App, so it never claims.
|
||||
SingleInstance? single = null;
|
||||
try
|
||||
{
|
||||
if (!DiagReport.Requested(Environment.GetCommandLineArgs())
|
||||
&& SingleInstance.TryClaim(SingleInstance.KeyOf(UiPaths.DataDirectory), out single) == SingleInstance.Claim.AnotherInstanceIsRunning)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
var app = new App { Instance = single };
|
||||
app.InitializeComponent();
|
||||
return app.Run();
|
||||
}
|
||||
finally
|
||||
{
|
||||
single?.Dispose();
|
||||
}
|
||||
var app = new App();
|
||||
app.InitializeComponent();
|
||||
return app.Run();
|
||||
}
|
||||
}
|
||||
@@ -45,11 +45,7 @@ public sealed class SafetyNotices : IDisposable
|
||||
case IpcMessageType.CaptureRefused when IpcCodec.Payload<CaptureRefusedEvent>(envelope) is { } refused:
|
||||
return new SafetyNotice(SafetyNoticeKind.Refused,
|
||||
string.Format(CultureInfo.CurrentCulture, Strings.Notice_Refused_Title_Format, refused.GameName ?? Strings.Common_NotAvailable),
|
||||
// "The session is still recorded" is not said about a process that could not be opened: that run ends at once
|
||||
// and is discarded for being short, so the sentence would be false there (2026-09-21).
|
||||
string.Equals(refused.Reason, "TargetUnreadable", StringComparison.Ordinal)
|
||||
? RefusalText(refused.Reason, refused.Family, refused.Signal)
|
||||
: RefusalText(refused.Reason, refused.Family, refused.Signal) + " " + Strings.Notice_Refused_Recording, now);
|
||||
RefusalText(refused.Reason, refused.Family, refused.Signal) + " " + Strings.Notice_Refused_Recording, now);
|
||||
case IpcMessageType.SafetyUnhook when IpcCodec.Payload<SafetyUnhookEvent>(envelope) is { } unhooked:
|
||||
return new SafetyNotice(SafetyNoticeKind.Unhooked, Strings.Notice_Unhooked_Title,
|
||||
string.Format(CultureInfo.CurrentCulture, Shared.Strings.Safety_Unhooked_Format, unhooked.Family ?? unhooked.Signal ?? Strings.Common_NotAvailable), now);
|
||||
@@ -68,11 +64,6 @@ public sealed class SafetyNotices : IDisposable
|
||||
return Shared.Strings.Safety_Refused_CouldNotVerify;
|
||||
}
|
||||
|
||||
if (string.Equals(reason, "TargetUnreadable", StringComparison.Ordinal))
|
||||
{
|
||||
return Shared.Strings.Safety_Refused_TargetUnreadable;
|
||||
}
|
||||
|
||||
string? named = family ?? signal;
|
||||
return named is null
|
||||
? Shared.Strings.Safety_Refused_Unnamed
|
||||
|
||||
@@ -1,146 +0,0 @@
|
||||
using System.IO;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
|
||||
namespace FrameLedger.App.Services;
|
||||
|
||||
/// <summary>
|
||||
/// One App per data folder per Windows session (2026-09-21). Until this existed nothing stopped a second App: the
|
||||
/// owner's log of 2026-09-21 shows two started 360 ms apart from one double-click — two shells, two tray icons, a
|
||||
/// second log file (<c>ui-…_001.log</c>, because the first held the day's), both writing one ledger — and with
|
||||
/// "minimize to tray" on, every click on the shortcut of an App that was already running made another.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The first instance owns a named mutex and listens on a named event; a later one finds the mutex taken, sets the
|
||||
/// event and exits, and the first brings its window forward (<see cref="ShellHost.Reveal"/>). Both names carry a hash
|
||||
/// of the data directory, so an App pointed at another folder is its own instance — the same key the Agent's
|
||||
/// one-per-data-folder rule uses (#201).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <c>Local\</c> on purpose: another Windows session is another desktop, and its user cannot be shown this window.
|
||||
/// An instance started as administrator creates objects a standard-user instance may not open; that is still "an
|
||||
/// instance is running", so every failure to open is answered as <see cref="Claim.AnotherInstanceIsRunning"/> —
|
||||
/// the second App never starts just because it could not say so.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <c>--diag</c> never claims: it opens no window and must work beside a running App (<c>10_LOGGING</c>). Velopack's
|
||||
/// lifecycle hooks run before this and exit the process on their own.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public sealed class SingleInstance : IDisposable
|
||||
{
|
||||
private readonly Mutex _mutex;
|
||||
private readonly EventWaitHandle _reveal;
|
||||
private readonly RegisteredWaitHandle _registration;
|
||||
private bool _disposed;
|
||||
|
||||
private SingleInstance(Mutex mutex, EventWaitHandle reveal)
|
||||
{
|
||||
_mutex = mutex;
|
||||
_reveal = reveal;
|
||||
_registration = ThreadPool.RegisterWaitForSingleObject(reveal, (_, timedOut) =>
|
||||
{
|
||||
if (!timedOut)
|
||||
{
|
||||
RevealRequested?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
}, null, Timeout.Infinite, executeOnlyOnce: false);
|
||||
}
|
||||
|
||||
/// <summary>Raised on a thread-pool thread when another instance was started and handed over; the App marshals it.</summary>
|
||||
public event EventHandler? RevealRequested;
|
||||
|
||||
/// <summary>What a start found.</summary>
|
||||
public enum Claim
|
||||
{
|
||||
/// <summary>This is the instance; keep the returned object alive for the process's life.</summary>
|
||||
Acquired,
|
||||
|
||||
/// <summary>Another instance owns the data folder; it was asked to show itself where that was possible.</summary>
|
||||
AnotherInstanceIsRunning,
|
||||
}
|
||||
|
||||
/// <summary>The object names for a data directory: a hash, because a path is not a legal kernel object name.</summary>
|
||||
public static string KeyOf(string dataDirectory)
|
||||
{
|
||||
ArgumentException.ThrowIfNullOrWhiteSpace(dataDirectory);
|
||||
byte[] hash = SHA256.HashData(Encoding.UTF8.GetBytes(dataDirectory.TrimEnd('\\', '/').ToUpperInvariant()));
|
||||
return Convert.ToHexString(hash, 0, 8);
|
||||
}
|
||||
|
||||
/// <summary>Claims the data folder, or tells the instance that already has it to show itself.</summary>
|
||||
public static Claim TryClaim(string key, out SingleInstance? instance)
|
||||
{
|
||||
ArgumentException.ThrowIfNullOrWhiteSpace(key);
|
||||
instance = null;
|
||||
string mutexName = @"Local\FrameLedger.App." + key;
|
||||
string eventName = @"Local\FrameLedger.App.Reveal." + key;
|
||||
|
||||
Mutex? mutex = null;
|
||||
try
|
||||
{
|
||||
mutex = new Mutex(initiallyOwned: true, mutexName, out bool createdNew);
|
||||
if (!createdNew)
|
||||
{
|
||||
mutex.Dispose();
|
||||
SignalExisting(eventName);
|
||||
return Claim.AnotherInstanceIsRunning;
|
||||
}
|
||||
|
||||
var reveal = new EventWaitHandle(initialState: false, EventResetMode.AutoReset, eventName);
|
||||
instance = new SingleInstance(mutex, reveal);
|
||||
mutex = null;
|
||||
return Claim.Acquired;
|
||||
}
|
||||
catch (Exception ex) when (ex is UnauthorizedAccessException or WaitHandleCannotBeOpenedException or IOException)
|
||||
{
|
||||
// The name exists and is not ours to open: an instance started as administrator. It is running.
|
||||
return Claim.AnotherInstanceIsRunning;
|
||||
}
|
||||
finally
|
||||
{
|
||||
mutex?.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (_disposed)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_disposed = true;
|
||||
_ = _registration.Unregister(null);
|
||||
_reveal.Dispose();
|
||||
try
|
||||
{
|
||||
_mutex.ReleaseMutex();
|
||||
}
|
||||
catch (ApplicationException)
|
||||
{
|
||||
// Disposed on a thread other than the one that claimed it: the handle closing below releases it all the same.
|
||||
}
|
||||
|
||||
_mutex.Dispose();
|
||||
}
|
||||
|
||||
private static void SignalExisting(string eventName)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (EventWaitHandle.TryOpenExisting(eventName, out EventWaitHandle? existing))
|
||||
{
|
||||
using (existing)
|
||||
{
|
||||
_ = existing.Set();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex) when (ex is UnauthorizedAccessException or IOException)
|
||||
{
|
||||
// It is running and cannot be told; this process still must not become a second App.
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
-3
@@ -217,7 +217,6 @@ public static class Strings
|
||||
nameof(FirstRun_Legal_Body),
|
||||
nameof(FirstRun_Legal_Header),
|
||||
nameof(FirstRun_Legal_Online),
|
||||
nameof(FirstRun_Legal_Summary),
|
||||
nameof(FirstRun_Next),
|
||||
nameof(FirstRun_Title),
|
||||
nameof(Format_Duration_HoursMinutes_Format),
|
||||
@@ -1010,8 +1009,6 @@ public static class Strings
|
||||
|
||||
public static string FirstRun_Legal_Online => ResourceManager.GetString(nameof(FirstRun_Legal_Online), Culture) ?? nameof(FirstRun_Legal_Online);
|
||||
|
||||
public static string FirstRun_Legal_Summary => ResourceManager.GetString(nameof(FirstRun_Legal_Summary), Culture) ?? nameof(FirstRun_Legal_Summary);
|
||||
|
||||
public static string FirstRun_Next => ResourceManager.GetString(nameof(FirstRun_Next), Culture) ?? nameof(FirstRun_Next);
|
||||
|
||||
public static string FirstRun_Title => ResourceManager.GetString(nameof(FirstRun_Title), Culture) ?? nameof(FirstRun_Title);
|
||||
|
||||
@@ -2424,13 +2424,4 @@
|
||||
<value>{0} @ {1:0.#} Hz</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="FirstRun_Legal_Summary" xml:space="preserve">
|
||||
<value>要点 — 同意する前にお読みください:
|
||||
• これはベータ版(プレリリース)です。不具合は確実に残っており、それによって生じた問題について開発者は責任を負いません。
|
||||
• お使いの PC は、ゲームの開発元またはパブリッシャーが公表している最低動作環境を少なくとも満たしている必要があります。先にご確認ください。それを下回る PC で起きた問題は FrameLedger ではなく、あなたの責任です。
|
||||
• フックは、あなたが同意した場合にのみ、ゲームごとにコンポーネントをゲームへ読み込みます。アンチチートはこれを理由にアカウントを BAN することがあります。FrameLedger はアンチチートを検出した場合は拒否します。あるゲームでその拒否をバイパスすることを選んだ場合、すべてのリスクはあなたが負い、開発者は一切負いません。
|
||||
• どこにも何も送信されません。記録はこの PC に残り、バックアップはご自身で行ってください。
|
||||
以下の文書が正式な条項であり、この要約はそれらに代わるものではありません。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
</root>
|
||||
@@ -1827,12 +1827,4 @@ Open the log folder?</value>
|
||||
<data name="System_Display_Format" xml:space="preserve">
|
||||
<value>{0} @ {1:0.#} Hz</value>
|
||||
</data>
|
||||
<data name="FirstRun_Legal_Summary" xml:space="preserve">
|
||||
<value>In short — please read before you accept:
|
||||
• This is a beta (pre-release). It certainly still has bugs, and the developer is not responsible for problems that result.
|
||||
• Your PC must meet at least the minimum requirements the game's developer or publisher states. Read them first. Problems on a PC below them are your responsibility, not FrameLedger's.
|
||||
• Hooking loads a component into a game, one game at a time, only after you agree. Anti-cheat systems can ban an account for that. FrameLedger refuses where it detects anti-cheat; if you choose to bypass that refusal for a game, you carry the entire risk and the developer carries none.
|
||||
• Nothing is sent anywhere. Your recordings stay on this PC, and backing them up is up to you.
|
||||
The documents below are the full terms; this summary does not replace them.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -1822,12 +1822,4 @@ Mở thư mục log?</value>
|
||||
<data name="System_Display_Format" xml:space="preserve">
|
||||
<value>{0} @ {1:0.#} Hz</value>
|
||||
</data>
|
||||
<data name="FirstRun_Legal_Summary" xml:space="preserve">
|
||||
<value>Tóm tắt — vui lòng đọc trước khi chấp nhận:
|
||||
• Đây là bản beta (pre-release). Chắc chắn vẫn còn lỗi, và nhà phát triển không chịu trách nhiệm về các sự cố phát sinh.
|
||||
• Máy của bạn phải đáp ứng ít nhất mức cấu hình tối thiểu mà nhà phát triển/nhà phát hành game công bố. Hãy đọc cấu hình tối thiểu trước. Sự cố trên máy dưới mức đó là trách nhiệm của bạn, không phải của FrameLedger.
|
||||
• Hooking nạp một thành phần vào game, từng game một, và chỉ sau khi bạn đồng ý. Hệ thống chống gian lận có thể khoá tài khoản vì việc này. FrameLedger từ chối ở nơi nó phát hiện anti-cheat; nếu bạn chọn bỏ qua sự từ chối đó cho một game, bạn tự chịu toàn bộ rủi ro và nhà phát triển không chịu bất kỳ trách nhiệm nào.
|
||||
• Không có gì được gửi đi đâu cả. Dữ liệu ghi lại nằm trên máy này, và việc sao lưu là của bạn.
|
||||
Các tài liệu bên dưới là điều khoản đầy đủ; phần tóm tắt này không thay thế chúng.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -93,9 +93,6 @@ public sealed partial class FirstRunViewModel : ObservableObject, IDisposable
|
||||
|
||||
public static string Title => Strings.FirstRun_Title;
|
||||
|
||||
/// <summary>The plain-language summary above the documents (2026-09-21): beta, minimum requirements, the ban risk, your data. It summarises; it is not the terms.</summary>
|
||||
public static string LegalSummary => Strings.FirstRun_Legal_Summary;
|
||||
|
||||
public static string LegalBody => Strings.FirstRun_Legal_Body;
|
||||
|
||||
public static string AgentBody => Strings.FirstRun_Agent_Body;
|
||||
|
||||
@@ -625,13 +625,7 @@ public sealed partial class GameDetailViewModel : ObservableObject
|
||||
// not refused, so the toggle works and the block's text stays on the page beside it.
|
||||
HookToggleEnabled = (!blocked || GuardBypassOn) && !Busy;
|
||||
HookStatusText = row.HookEnabled ? Strings.GameDetail_Hooking_On : Strings.GameDetail_Hooking_Off;
|
||||
// "Hooking is disabled for this game" beside a hooking switch that is ON was the beta.3 page under a bypass. The
|
||||
// finding stays on the page - it is still true - and says what happened to it.
|
||||
BlockedText = !blocked
|
||||
? null
|
||||
: string.Format(CultureInfo.CurrentCulture,
|
||||
GuardBypassOn ? Shared.Strings.Safety_Bypass_Found_Overruled_Format : Shared.Strings.Safety_Blocked_Toggle_Format,
|
||||
row.HookBlockedReason ?? row.HookPrescanState);
|
||||
BlockedText = blocked ? string.Format(CultureInfo.CurrentCulture, Shared.Strings.Safety_Blocked_Toggle_Format, row.HookBlockedReason ?? row.HookPrescanState) : null;
|
||||
AutoDisabledText = row.HookAutoDisabledReason is { Length: > 0 } reason && !row.HookEnabled
|
||||
? string.Format(CultureInfo.CurrentCulture, Shared.Strings.Safety_AutoDisabled_Format, reason)
|
||||
: null;
|
||||
|
||||
@@ -142,24 +142,4 @@ public enum SessionEndReason
|
||||
/// unhooked from here — <c>exit_status</c> is <c>normal</c>, and the row is stored like any other.
|
||||
/// </summary>
|
||||
StoppedByUser,
|
||||
|
||||
/// <summary>
|
||||
/// The game IS running and its process cannot be opened: every candidate of that name refused to be read, and none
|
||||
/// could be identified (2026-09-21). Two ordinary causes: an anti-cheat's kernel driver protects the process
|
||||
/// (ELDEN RING under Easy Anti-Cheat, the owner's log of 2026-09-21), or the game runs as administrator and the
|
||||
/// Agent does not. Nothing was injected, and nothing can be.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// It was reported as <see cref="TargetAmbiguous"/> until this existed — "more than one process is running it" about
|
||||
/// a single process — and reached the user as a toast reading <c>InjectFailed: TargetAmbiguous</c>, while the
|
||||
/// one-second session was discarded for being short. With the guard bypass on, that was the whole visible result.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>The guard bypass does not change it, and nothing will be built that does.</b> The bypass overrules
|
||||
/// FrameLedger's own refusal; a process another product's driver has closed to us stays closed, and opening it
|
||||
/// anyway would be defeating that product — CLAUDE.md rule 3.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
TargetUnreadable,
|
||||
}
|
||||
@@ -37,10 +37,7 @@ public static class RecordedSessionEvents
|
||||
public static Kind Classify(SessionEndReason reason) => reason switch
|
||||
{
|
||||
SessionEndReason.RefusedByGuard or SessionEndReason.RefusedPreviouslyBlocked
|
||||
or SessionEndReason.PreScanCouldNotVerify or SessionEndReason.RefusedKillSwitch
|
||||
// A persistent notice that says why, not a toast with a code: the user enabled hooking (perhaps the bypass
|
||||
// too), started the game and would otherwise see nothing at all.
|
||||
or SessionEndReason.TargetUnreadable => Kind.Refused,
|
||||
or SessionEndReason.PreScanCouldNotVerify or SessionEndReason.RefusedKillSwitch => Kind.Refused,
|
||||
SessionEndReason.SafetyUnhook => Kind.SafetyUnhook,
|
||||
SessionEndReason.SupervisionLost or SessionEndReason.WriterSelfDisabled or SessionEndReason.WriterStoppedBlocklisted
|
||||
or SessionEndReason.WriterNeverInstalledHooks or SessionEndReason.SupervisionFaulted
|
||||
|
||||
@@ -278,24 +278,7 @@ public sealed class CaptureOrchestrator
|
||||
}
|
||||
|
||||
private void Report(RecordedSession r) =>
|
||||
_log($"session {r.SessionGuid:N}: {r.Outcome.Reason}; {r.Finalize.Status} (tier {(int)r.Row.Tier}, exit={r.ExitStatus}, frames={r.Row.FrameCount}){GuardDetail(r.Outcome)}");
|
||||
|
||||
/// <summary>
|
||||
/// What the guard said, when it said anything but a plain allow (2026-09-21). A SafetyUnhook on the owner's machine
|
||||
/// left "SafetyUnhook; Saved" in this log and nothing about WHICH finding fired; the pipe event carried it and the
|
||||
/// log is what survives.
|
||||
/// </summary>
|
||||
private static string GuardDetail(CaptureOutcome o)
|
||||
{
|
||||
Domain.AntiCheat.AntiCheatVerdict v = o.Verdict;
|
||||
if (v.Reason == Domain.AntiCheat.AntiCheatRefusalReason.Allow && o.StartedUnderBypass is null)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
string text = $"; guard={v.Reason}" + (v.Family.Length > 0 ? "/" + v.Family : string.Empty) + (v.Signal.Length > 0 ? "/" + v.Signal : string.Empty);
|
||||
return o.StartedUnderBypass is { } under ? text + $"; started-under-bypass={under.Family}/{under.Signal}" : text;
|
||||
}
|
||||
_log($"session {r.SessionGuid:N}: {r.Outcome.Reason}; {r.Finalize.Status} (tier {(int)r.Row.Tier}, exit={r.ExitStatus}, frames={r.Row.FrameCount})");
|
||||
|
||||
private RecordRequest Attach(string normalisedExePath, string? gameName, Guid? sessionGuid, CancellationToken stop)
|
||||
{
|
||||
|
||||
@@ -253,7 +253,7 @@ internal static class Program
|
||||
{
|
||||
SessionEndReason.TargetExited => _exitOk,
|
||||
SessionEndReason.Running => _exitOk,
|
||||
SessionEndReason.TargetNotRunning or SessionEndReason.TargetAmbiguous or SessionEndReason.TargetUnreadable
|
||||
SessionEndReason.TargetNotRunning or SessionEndReason.TargetAmbiguous
|
||||
or SessionEndReason.TargetCannotBePinned or SessionEndReason.LaunchCannotStart => _exitTargetNotResolved,
|
||||
SessionEndReason.AttachRefused => _exitAttachRefused,
|
||||
SessionEndReason.SafetyUnhook or SessionEndReason.SupervisionLost
|
||||
|
||||
@@ -53,9 +53,7 @@ public sealed class TargetResolver : ITargetResolver
|
||||
|
||||
if (matches.Count == 0)
|
||||
{
|
||||
// Candidates exist and NONE could be read: not an ambiguity between processes, a process closed to us
|
||||
// (protected by an anti-cheat driver, or elevated). It used to be reported as TargetAmbiguous.
|
||||
reason = unreadable > 0 ? SessionEndReason.TargetUnreadable : SessionEndReason.TargetNotRunning;
|
||||
reason = unreadable > 0 ? SessionEndReason.TargetAmbiguous : SessionEndReason.TargetNotRunning;
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,9 +13,7 @@ namespace FrameLedger.Shared.Safety;
|
||||
/// </remarks>
|
||||
public static class GuardBypassDisclosure
|
||||
{
|
||||
// /2 (2026-09-21): the text now says what the bypass CANNOT do - a process an anti-cheat driver protects stays
|
||||
// closed to FrameLedger, and nothing will be built to open it. A row stamped /1 keeps its bypass: that text was accepted.
|
||||
public const string Version = "guard-bypass-dialog/2";
|
||||
public const string Version = "guard-bypass-dialog/1";
|
||||
|
||||
/// <summary>
|
||||
/// What the user must type, exactly, before the dialog's primary button enables. Not localised on purpose: it is
|
||||
|
||||
-6
@@ -33,7 +33,6 @@ public static class Strings
|
||||
nameof(Safety_Bypass_Failed_Format),
|
||||
nameof(Safety_Bypass_Found_Format),
|
||||
nameof(Safety_Bypass_Found_Nothing),
|
||||
nameof(Safety_Bypass_Found_Overruled_Format),
|
||||
nameof(Safety_Bypass_Intro),
|
||||
nameof(Safety_Bypass_KeepGuard),
|
||||
nameof(Safety_Bypass_Liability),
|
||||
@@ -62,7 +61,6 @@ public static class Strings
|
||||
nameof(Safety_RecordWithoutMeasuring),
|
||||
nameof(Safety_Refused_CouldNotVerify),
|
||||
nameof(Safety_Refused_Named_Format),
|
||||
nameof(Safety_Refused_TargetUnreadable),
|
||||
nameof(Safety_Refused_Unnamed),
|
||||
nameof(Safety_Unhooked_Format),
|
||||
];
|
||||
@@ -81,8 +79,6 @@ public static class Strings
|
||||
|
||||
public static string Safety_Bypass_Found_Nothing => ResourceManager.GetString(nameof(Safety_Bypass_Found_Nothing), Culture) ?? nameof(Safety_Bypass_Found_Nothing);
|
||||
|
||||
public static string Safety_Bypass_Found_Overruled_Format => ResourceManager.GetString(nameof(Safety_Bypass_Found_Overruled_Format), Culture) ?? nameof(Safety_Bypass_Found_Overruled_Format);
|
||||
|
||||
public static string Safety_Bypass_Intro => ResourceManager.GetString(nameof(Safety_Bypass_Intro), Culture) ?? nameof(Safety_Bypass_Intro);
|
||||
|
||||
public static string Safety_Bypass_KeepGuard => ResourceManager.GetString(nameof(Safety_Bypass_KeepGuard), Culture) ?? nameof(Safety_Bypass_KeepGuard);
|
||||
@@ -139,8 +135,6 @@ public static class Strings
|
||||
|
||||
public static string Safety_Refused_Named_Format => ResourceManager.GetString(nameof(Safety_Refused_Named_Format), Culture) ?? nameof(Safety_Refused_Named_Format);
|
||||
|
||||
public static string Safety_Refused_TargetUnreadable => ResourceManager.GetString(nameof(Safety_Refused_TargetUnreadable), Culture) ?? nameof(Safety_Refused_TargetUnreadable);
|
||||
|
||||
public static string Safety_Refused_Unnamed => ResourceManager.GetString(nameof(Safety_Refused_Unnamed), Culture) ?? nameof(Safety_Refused_Unnamed);
|
||||
|
||||
public static string Safety_Unhooked_Format => ResourceManager.GetString(nameof(Safety_Unhooked_Format), Culture) ?? nameof(Safety_Unhooked_Format);
|
||||
|
||||
@@ -27,15 +27,15 @@
|
||||
<data name="Safety_Consent_VersionMismatch" xml:space="preserve"><value>This app and the capture agent carry different versions of this consent text. Nothing was enabled. Restart both, then try again.</value><comment>safety: human review required</comment></data>
|
||||
<data name="Safety_RecordWithoutMeasuring" xml:space="preserve"><value>Record this session without measuring it</value><comment>safety: human review required</comment></data>
|
||||
<data name="Safety_Refused_CouldNotVerify" xml:space="preserve"><value>FrameLedger could not verify this game's files for anti-cheat, so hooking stays off. It will check again when the game's files or the detection rules change.</value><comment>safety: human review required</comment></data>
|
||||
<data name="Safety_Refused_Named_Format" xml:space="preserve"><value>{0} was detected in this game ({1}). FrameLedger will not inject into it. The only way past this is that game's own guard-bypass switch, which is off by default and entirely at your own risk.</value><comment>safety: human review required</comment></data>
|
||||
<data name="Safety_Refused_Unnamed" xml:space="preserve"><value>An anti-cheat or anti-tamper module was detected in this game. FrameLedger will not inject into it. The only way past this is that game's own guard-bypass switch, which is off by default and entirely at your own risk.</value><comment>safety: human review required</comment></data>
|
||||
<data name="Safety_Refused_Named_Format" xml:space="preserve"><value>{0} was detected in this game ({1}). FrameLedger will not inject into it, and there is no way to override this.</value><comment>safety: human review required</comment></data>
|
||||
<data name="Safety_Refused_Unnamed" xml:space="preserve"><value>An anti-cheat or anti-tamper module was detected in this game. FrameLedger will not inject into it, and there is no way to override this.</value><comment>safety: human review required</comment></data>
|
||||
<data name="Safety_Unhooked_Format" xml:space="preserve"><value>Capture stopped: {0} was detected while the game was running. FrameLedger unhooked and will not inject into this game again until you enable it again.</value><comment>safety: human review required</comment></data>
|
||||
<data name="Safety_Bypass_Title_Format" xml:space="preserve">
|
||||
<value>Bypass the anti-cheat guard for {0}?</value>
|
||||
<comment>safety: human review required</comment>
|
||||
</data>
|
||||
<data name="Safety_Bypass_Intro" xml:space="preserve">
|
||||
<value>FrameLedger refuses to inject into a game where it detects anti-cheat or anti-tamper software. This switch overrules that refusal for this one game. It is OFF by default, it applies to no other game, and you can turn it off again at any time. It cannot make FrameLedger work where an anti-cheat protects the game's process from being opened: such a game stays unmeasured, FrameLedger will not work around that protection, and you would carry the ban risk for nothing.</value>
|
||||
<value>FrameLedger refuses to inject into a game where it detects anti-cheat or anti-tamper software. This switch overrules that refusal for this one game. It is OFF by default, it applies to no other game, and you can turn it off again at any time.</value>
|
||||
<comment>safety: human review required</comment>
|
||||
</data>
|
||||
<data name="Safety_Bypass_Found_Format" xml:space="preserve">
|
||||
@@ -98,6 +98,4 @@
|
||||
<value>The bypass was not changed: {0}</value>
|
||||
<comment>safety: human review required</comment>
|
||||
</data>
|
||||
<data name="Safety_Bypass_Found_Overruled_Format" xml:space="preserve"><value>The guard found: {0}. You chose to bypass it for this game, so hooking is allowed here at your own risk.</value><comment>safety: human review required</comment></data>
|
||||
<data name="Safety_Refused_TargetUnreadable" xml:space="preserve"><value>The game is running, but Windows would not let FrameLedger open its process: it is protected by an anti-cheat driver, or it runs as administrator while FrameLedger does not. Nothing was injected and this run was not measured. The guard bypass does not change this, and FrameLedger will not work around another product's protection.</value><comment>safety: human review required</comment></data>
|
||||
</root>
|
||||
@@ -30,14 +30,14 @@
|
||||
<data name="Safety_Consent_VersionMismatch" xml:space="preserve"><value>This app and the capture agent carry different versions of this consent text. Nothing was enabled. Restart both, then try again.</value></data>
|
||||
<data name="Safety_RecordWithoutMeasuring" xml:space="preserve"><value>Record this session without measuring it</value></data>
|
||||
<data name="Safety_Refused_CouldNotVerify" xml:space="preserve"><value>FrameLedger could not verify this game's files for anti-cheat, so hooking stays off. It will check again when the game's files or the detection rules change.</value></data>
|
||||
<data name="Safety_Refused_Named_Format" xml:space="preserve"><value>{0} was detected in this game ({1}). FrameLedger will not inject into it. The only way past this is that game's own guard-bypass switch, which is off by default and entirely at your own risk.</value></data>
|
||||
<data name="Safety_Refused_Unnamed" xml:space="preserve"><value>An anti-cheat or anti-tamper module was detected in this game. FrameLedger will not inject into it. The only way past this is that game's own guard-bypass switch, which is off by default and entirely at your own risk.</value></data>
|
||||
<data name="Safety_Refused_Named_Format" xml:space="preserve"><value>{0} was detected in this game ({1}). FrameLedger will not inject into it, and there is no way to override this.</value></data>
|
||||
<data name="Safety_Refused_Unnamed" xml:space="preserve"><value>An anti-cheat or anti-tamper module was detected in this game. FrameLedger will not inject into it, and there is no way to override this.</value></data>
|
||||
<data name="Safety_Unhooked_Format" xml:space="preserve"><value>Capture stopped: {0} was detected while the game was running. FrameLedger unhooked and will not inject into this game again until you enable it again.</value></data>
|
||||
<data name="Safety_Bypass_Title_Format" xml:space="preserve">
|
||||
<value>Bypass the anti-cheat guard for {0}?</value>
|
||||
</data>
|
||||
<data name="Safety_Bypass_Intro" xml:space="preserve">
|
||||
<value>FrameLedger refuses to inject into a game where it detects anti-cheat or anti-tamper software. This switch overrules that refusal for this one game. It is OFF by default, it applies to no other game, and you can turn it off again at any time. It cannot make FrameLedger work where an anti-cheat protects the game's process from being opened: such a game stays unmeasured, FrameLedger will not work around that protection, and you would carry the ban risk for nothing.</value>
|
||||
<value>FrameLedger refuses to inject into a game where it detects anti-cheat or anti-tamper software. This switch overrules that refusal for this one game. It is OFF by default, it applies to no other game, and you can turn it off again at any time.</value>
|
||||
</data>
|
||||
<data name="Safety_Bypass_Found_Format" xml:space="preserve">
|
||||
<value>What the guard found for this game: {0}</value>
|
||||
@@ -84,6 +84,4 @@
|
||||
<data name="Safety_Bypass_Failed_Format" xml:space="preserve">
|
||||
<value>The bypass was not changed: {0}</value>
|
||||
</data>
|
||||
<data name="Safety_Bypass_Found_Overruled_Format" xml:space="preserve"><value>The guard found: {0}. You chose to bypass it for this game, so hooking is allowed here at your own risk.</value></data>
|
||||
<data name="Safety_Refused_TargetUnreadable" xml:space="preserve"><value>The game is running, but Windows would not let FrameLedger open its process: it is protected by an anti-cheat driver, or it runs as administrator while FrameLedger does not. Nothing was injected and this run was not measured. The guard bypass does not change this, and FrameLedger will not work around another product's protection.</value></data>
|
||||
</root>
|
||||
@@ -26,14 +26,14 @@
|
||||
<data name="Safety_Consent_VersionMismatch" xml:space="preserve"><value>Ứng dụng này và capture agent mang hai phiên bản khác nhau của văn bản đồng ý này. Chưa bật gì cả. Hãy khởi động lại cả hai rồi thử lại.</value></data>
|
||||
<data name="Safety_RecordWithoutMeasuring" xml:space="preserve"><value>Ghi phiên này mà không đo</value></data>
|
||||
<data name="Safety_Refused_CouldNotVerify" xml:space="preserve"><value>FrameLedger không thể kiểm tra các tệp của game này về anti-cheat, nên hooking vẫn tắt. Nó sẽ kiểm tra lại khi tệp của game hoặc bộ quy tắc phát hiện thay đổi.</value></data>
|
||||
<data name="Safety_Refused_Named_Format" xml:space="preserve"><value>Đã phát hiện {0} trong game này ({1}). FrameLedger sẽ không inject vào game này. Cách duy nhất để vượt qua là công tắc "Bỏ qua Guard" của riêng game đó, mặc định tắt và bạn hoàn toàn tự chịu rủi ro.</value></data>
|
||||
<data name="Safety_Refused_Unnamed" xml:space="preserve"><value>Đã phát hiện một mô-đun anti-cheat hoặc anti-tamper trong game này. FrameLedger sẽ không inject vào game này. Cách duy nhất để vượt qua là công tắc "Bỏ qua Guard" của riêng game đó, mặc định tắt và bạn hoàn toàn tự chịu rủi ro.</value></data>
|
||||
<data name="Safety_Refused_Named_Format" xml:space="preserve"><value>Đã phát hiện {0} trong game này ({1}). FrameLedger sẽ không inject vào game này, và không có cách nào để bỏ qua điều đó.</value></data>
|
||||
<data name="Safety_Refused_Unnamed" xml:space="preserve"><value>Đã phát hiện một mô-đun anti-cheat hoặc anti-tamper trong game này. FrameLedger sẽ không inject vào game này, và không có cách nào để bỏ qua điều đó.</value></data>
|
||||
<data name="Safety_Unhooked_Format" xml:space="preserve"><value>Đã dừng thu thập: phát hiện {0} khi game đang chạy. FrameLedger đã gỡ hook và sẽ không inject vào game này nữa cho đến khi bạn bật lại.</value></data>
|
||||
<data name="Safety_Bypass_Title_Format" xml:space="preserve">
|
||||
<value>Bỏ qua Guard chống gian lận cho {0}?</value>
|
||||
</data>
|
||||
<data name="Safety_Bypass_Intro" xml:space="preserve">
|
||||
<value>FrameLedger từ chối inject vào game mà nó phát hiện có phần mềm chống gian lận (anti-cheat) hoặc chống can thiệp (anti-tamper). Công tắc này bỏ qua sự từ chối đó cho riêng game này. Mặc định là TẮT, không áp dụng cho game nào khác, và bạn có thể tắt lại bất cứ lúc nào. Nó không thể khiến FrameLedger hoạt động ở nơi anti-cheat bảo vệ tiến trình game không cho mở: game như vậy vẫn không đo được, FrameLedger sẽ không tìm cách vượt qua cơ chế bảo vệ đó, và bạn sẽ chịu rủi ro bị khoá tài khoản mà không được gì.</value>
|
||||
<value>FrameLedger từ chối inject vào game mà nó phát hiện có phần mềm chống gian lận (anti-cheat) hoặc chống can thiệp (anti-tamper). Công tắc này bỏ qua sự từ chối đó cho riêng game này. Mặc định là TẮT, không áp dụng cho game nào khác, và bạn có thể tắt lại bất cứ lúc nào.</value>
|
||||
</data>
|
||||
<data name="Safety_Bypass_Found_Format" xml:space="preserve">
|
||||
<value>Guard đã phát hiện ở game này: {0}</value>
|
||||
@@ -80,6 +80,4 @@
|
||||
<data name="Safety_Bypass_Failed_Format" xml:space="preserve">
|
||||
<value>Chế độ bỏ qua không thay đổi: {0}</value>
|
||||
</data>
|
||||
<data name="Safety_Bypass_Found_Overruled_Format" xml:space="preserve"><value>Guard đã phát hiện: {0}. Bạn đã chọn bỏ qua cho game này, nên hooking được phép ở đây và bạn tự chịu rủi ro.</value></data>
|
||||
<data name="Safety_Refused_TargetUnreadable" xml:space="preserve"><value>Game đang chạy, nhưng Windows không cho FrameLedger mở tiến trình của nó: tiến trình được driver anti-cheat bảo vệ, hoặc game chạy với quyền quản trị còn FrameLedger thì không. Không có gì được inject và lần chạy này không được đo. Chế độ bỏ qua Guard không thay đổi điều này, và FrameLedger sẽ không tìm cách vượt qua cơ chế bảo vệ của sản phẩm khác.</value></data>
|
||||
</root>
|
||||
@@ -2578,17 +2578,8 @@ TEST_CASE("the native log: written at init, on the Agent's request, and on the s
|
||||
Sleep(50);
|
||||
}
|
||||
REQUIRE(r.st->status == fl::FL_STATUS_UNHOOKED);
|
||||
// POLL for the LAST line the stop writes rather than sleeping a fixed 1500 ms. The watchdog flushes the ring-buffer
|
||||
// log on its own cadence, so a fixed sleep read the file BETWEEN two UNHOOK_RESTORED lines on a loaded CI runner
|
||||
// (2026-09-21, PR #209: the dxgi line was there, the kernelbase one was not yet). Bounded at 10 s; the checks below
|
||||
// still fail, with the text, if the line never comes.
|
||||
for (int i = 0; i < 100; ++i) {
|
||||
text = ReadWholeFile(log);
|
||||
if (text.find("UNHOOK_RESTORED kernelbase!LoadLibraryExW") != std::string::npos) {
|
||||
break;
|
||||
}
|
||||
Sleep(100);
|
||||
}
|
||||
Sleep(1500);
|
||||
text = ReadWholeFile(log);
|
||||
INFO("after the stop:\n" << text);
|
||||
CHECK(text.find("STOP") != std::string::npos);
|
||||
CHECK(text.find("UNHOOK_RESTORED dxgi!IDXGISwapChain::Present") != std::string::npos);
|
||||
|
||||
@@ -447,10 +447,6 @@ public sealed class GameDetailViewModelTests
|
||||
vm.GuardBypassOn.Should().BeTrue();
|
||||
vm.HookToggleEnabled.Should().BeTrue("under the bypass enabling is no longer refused, so the toggle works");
|
||||
vm.BlockedText.Should().NotBeNull("the block stays on the page: the finding is still true");
|
||||
vm.BlockedText.Should().Contain("Easy Anti-Cheat");
|
||||
vm.BlockedText.Should().NotStartWith(Shared.Strings.Safety_Blocked_Toggle_Format.Split('{')[0],
|
||||
"beta.3 said 'Hooking is disabled for this game' beside a hooking switch that was ON");
|
||||
vm.BlockedText.Should().StartWith(Shared.Strings.Safety_Bypass_Found_Overruled_Format.Split('{')[0]);
|
||||
|
||||
vm.ToggleGuardBypassCommand.Execute(null);
|
||||
Task pending = vm.Pending;
|
||||
|
||||
@@ -115,7 +115,7 @@ public sealed class HookingConsentTests
|
||||
HookingConsentResult refused = await consent.EnableAsync(7, "Title", Ct);
|
||||
refused.Outcome.Should().Be(HookingConsentOutcome.Refused);
|
||||
refused.Refusal!.Signal.Should().Be("EasyAntiCheat_EOS.dll");
|
||||
refused.RefusalText().Should().Contain("eac").And.Contain("EasyAntiCheat_EOS.dll").And.Contain("guard-bypass switch", "the refusal names the one way past it, and whose risk that is (2026-09-21; it said \"no way to override\" until the bypass existed)");
|
||||
refused.RefusalText().Should().Contain("eac").And.Contain("EasyAntiCheat_EOS.dll").And.Contain("no way to override");
|
||||
|
||||
agent.Answer = static _ => Ack(IpcMessageType.Refused, new RefusedAck(7, "PreScanCouldNotVerify", null, null));
|
||||
(await consent.EnableAsync(7, "Title", Ct)).RefusalText().Should().Be(Shared.Strings.Safety_Refused_CouldNotVerify);
|
||||
|
||||
@@ -29,29 +29,6 @@ public sealed class SafetyNoticesTests
|
||||
strip.Shown.Should().BeEmpty("never a toast, never a snackbar");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 2026-09-21: a game whose process an anti-cheat driver protects (ELDEN RING under EAC, with the guard bypass on)
|
||||
/// reached the user as a toast reading "InjectFailed: TargetAmbiguous" and no session. It is a persistent notice that
|
||||
/// says why and that the bypass does not change it - and it does NOT claim the session is still recorded, because
|
||||
/// that run ends at once and is discarded.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void AProcessThatCannotBeOpenedIsAPersistentNoticeThatSaysWhyAndPromisesNoRecording()
|
||||
{
|
||||
var link = new FakeAgentLink();
|
||||
var strip = new RecordingStrip();
|
||||
using var notices = new SafetyNotices(link, strip);
|
||||
|
||||
link.Raise(IpcMessageType.CaptureRefused, new CaptureRefusedEvent(7, "ELDEN RING", "TargetUnreadable", null, null));
|
||||
|
||||
SafetyNotice notice = notices.Items.Should().ContainSingle().Subject;
|
||||
notice.Kind.Should().Be(SafetyNoticeKind.Refused);
|
||||
notice.Title.Should().Contain("ELDEN RING");
|
||||
notice.Body.Should().Be(Shared.Strings.Safety_Refused_TargetUnreadable);
|
||||
notice.Body.Should().NotContain(Strings.Notice_Refused_Recording);
|
||||
strip.Shown.Should().BeEmpty("never a toast");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ACouldNotVerifyRefusalUsesItsOwnSentence()
|
||||
{
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
using FluentAssertions;
|
||||
using FrameLedger.App.Services;
|
||||
|
||||
namespace FrameLedger.App.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// One App per data folder (2026-09-21): the owner's log showed two started 360 ms apart, each with a shell and a tray
|
||||
/// icon. The first claim wins; a later one is told so, asks the first to show itself, and must not start; and the
|
||||
/// claim ends with the process that holds it.
|
||||
/// </summary>
|
||||
public sealed class SingleInstanceTests
|
||||
{
|
||||
private static string UniqueKey() => SingleInstance.KeyOf(@"C:\fl-tests\" + Guid.NewGuid().ToString("N"));
|
||||
|
||||
[Fact]
|
||||
public void TheFirstStartClaimsTheFolderAndALaterOneHandsOverAndIsRefused()
|
||||
{
|
||||
string key = UniqueKey();
|
||||
SingleInstance.TryClaim(key, out SingleInstance? first).Should().Be(SingleInstance.Claim.Acquired);
|
||||
using (first)
|
||||
{
|
||||
first.Should().NotBeNull();
|
||||
using var revealed = new ManualResetEventSlim(false);
|
||||
first!.RevealRequested += (_, _) => revealed.Set();
|
||||
|
||||
SingleInstance.Claim later = SingleInstance.TryClaim(key, out SingleInstance? second);
|
||||
using (second)
|
||||
{
|
||||
later.Should().Be(SingleInstance.Claim.AnotherInstanceIsRunning);
|
||||
second.Should().BeNull("the second start gets nothing to hold: it exits");
|
||||
}
|
||||
|
||||
revealed.Wait(TimeSpan.FromSeconds(5), TestContext.Current.CancellationToken).Should().BeTrue("the running instance is asked to bring its window forward");
|
||||
|
||||
// And again: the event is not one-shot, because the user can click the shortcut any number of times.
|
||||
revealed.Reset();
|
||||
SingleInstance.Claim third = SingleInstance.TryClaim(key, out SingleInstance? none);
|
||||
none?.Dispose();
|
||||
third.Should().Be(SingleInstance.Claim.AnotherInstanceIsRunning);
|
||||
revealed.Wait(TimeSpan.FromSeconds(5), TestContext.Current.CancellationToken).Should().BeTrue();
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TheClaimEndsWithItsHolderAndAnotherFolderIsAnotherInstance()
|
||||
{
|
||||
string key = UniqueKey();
|
||||
SingleInstance.TryClaim(key, out SingleInstance? first).Should().Be(SingleInstance.Claim.Acquired);
|
||||
first!.Dispose();
|
||||
first.Dispose();
|
||||
|
||||
SingleInstance.TryClaim(key, out SingleInstance? again).Should().Be(SingleInstance.Claim.Acquired, "the App that held it has exited");
|
||||
using (again)
|
||||
{
|
||||
SingleInstance.TryClaim(UniqueKey(), out SingleInstance? elsewhere).Should().Be(SingleInstance.Claim.Acquired, "an App pointed at another data folder is its own instance");
|
||||
elsewhere!.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TheKeyIsTheFolderWhateverItsCaseOrTrailingSeparator()
|
||||
{
|
||||
string key = SingleInstance.KeyOf(@"C:\Users\someone\AppData\Local\FrameLedger");
|
||||
|
||||
SingleInstance.KeyOf(@"c:\users\SOMEONE\appdata\local\frameledger\").Should().Be(key);
|
||||
SingleInstance.KeyOf(@"C:\Users\someone\AppData\Local\Other").Should().NotBe(key);
|
||||
key.Should().MatchRegex("^[0-9A-F]{16}$", "a path is not a legal kernel object name; a hash is");
|
||||
}
|
||||
}
|
||||
@@ -64,38 +64,6 @@ public sealed class StringsTests
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The owner's beta.3 screenshot: a Vietnamese UI whose guard-bypass card, consent dialog and refusal notices were
|
||||
/// English. FrameLedger.Shared's Strings had no culture of its own, and the thread culture set during the async
|
||||
/// start does not reach the dispatcher's later operations. <c>ApplyCulture</c> sets BOTH families explicitly.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void ApplyingTheUiLanguageSetsTheSafetyFamilyToo()
|
||||
{
|
||||
CultureInfo? app = Strings.Culture;
|
||||
CultureInfo? safety = Shared.Strings.Culture;
|
||||
CultureInfo thread = CultureInfo.CurrentUICulture;
|
||||
CultureInfo? threadDefault = CultureInfo.DefaultThreadCurrentUICulture;
|
||||
try
|
||||
{
|
||||
App.ApplyCulture("vi");
|
||||
// The thread's culture is put back to English ON PURPOSE: the explicit culture must not depend on it.
|
||||
CultureInfo.CurrentUICulture = CultureInfo.GetCultureInfo("en");
|
||||
|
||||
Shared.Strings.Culture.Should().Be(CultureInfo.GetCultureInfo("vi"));
|
||||
Shared.Strings.Safety_Bypass_Toggle_Label.Should().StartWith("Bỏ qua Guard");
|
||||
Shared.Strings.Safety_Blocked_Toggle_Format.Should().StartWith("Hooking bị vô hiệu hoá");
|
||||
Strings.Nav_Settings.Should().Be("Cài đặt");
|
||||
}
|
||||
finally
|
||||
{
|
||||
Strings.Culture = app;
|
||||
Shared.Strings.Culture = safety;
|
||||
CultureInfo.CurrentUICulture = thread;
|
||||
CultureInfo.DefaultThreadCurrentUICulture = threadDefault;
|
||||
}
|
||||
}
|
||||
|
||||
private static string RepoRoot()
|
||||
{
|
||||
string? dir = AppContext.BaseDirectory;
|
||||
|
||||
@@ -33,7 +33,6 @@ public sealed class RecordedSessionEventsTests
|
||||
[InlineData(SessionEndReason.AttachRefused, RecordedSessionEvents.Kind.AttachError)]
|
||||
[InlineData(SessionEndReason.LaunchCannotStart, RecordedSessionEvents.Kind.TargetError)]
|
||||
[InlineData(SessionEndReason.TargetAmbiguous, RecordedSessionEvents.Kind.TargetError)]
|
||||
[InlineData(SessionEndReason.TargetUnreadable, RecordedSessionEvents.Kind.Refused)]
|
||||
[InlineData(SessionEndReason.TargetNotRunning, RecordedSessionEvents.Kind.TargetError)]
|
||||
[InlineData(SessionEndReason.TargetExited, RecordedSessionEvents.Kind.None)]
|
||||
[InlineData(SessionEndReason.RefusedHookNotEnabled, RecordedSessionEvents.Kind.None)]
|
||||
|
||||
@@ -99,23 +99,6 @@ public sealed class TargetResolverTests : IDisposable
|
||||
return new TargetResolver().Resolve(ExecutableIdentity.Normalise(_exe), out reason);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 2026-09-21, against a real process Windows will not let anybody open: <c>csrss.exe</c> is a protected process, which
|
||||
/// is what a game under a kernel anti-cheat looks like from here (ELDEN RING under Easy Anti-Cheat, the owner's log).
|
||||
/// Every candidate of the name exists and none can be read. That is NOT "more than one process is running it" - the
|
||||
/// answer this gave until now - and no pid comes back, so nothing is ever injected on a guess.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void AProcessThatCannotBeOpenedIsUnreadableNotAmbiguousAndIsNeverPicked()
|
||||
{
|
||||
string csrss = Path.Combine(Environment.SystemDirectory, "csrss.exe");
|
||||
|
||||
int? pid = new TargetResolver().Resolve(ExecutableIdentity.Normalise(csrss), out SessionEndReason reason);
|
||||
|
||||
pid.Should().BeNull();
|
||||
reason.Should().Be(SessionEndReason.TargetUnreadable);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void OneInstanceResolves()
|
||||
{
|
||||
|
||||
@@ -37,21 +37,7 @@ public sealed class ParentDumpTests : IDisposable
|
||||
var problems = new List<string>();
|
||||
try
|
||||
{
|
||||
// A process started microseconds ago is still being mapped by the loader, and MiniDumpWriteDump then fails
|
||||
// with ERROR_PARTIAL_COPY (0x8007012B) - seen on CI 2026-09-21. The product never dumps a process that young
|
||||
// (it dumps one that crashed), so the TEST waits for the child to finish loading: retry, bounded at 5 s.
|
||||
bool written = false;
|
||||
for (int attempt = 0; attempt < 50 && !written; attempt++)
|
||||
{
|
||||
problems.Clear();
|
||||
written = ParentDump.WriteDump(child, file, problems.Add);
|
||||
if (!written)
|
||||
{
|
||||
Thread.Sleep(100);
|
||||
}
|
||||
}
|
||||
|
||||
written.Should().BeTrue(string.Join(" | ", problems));
|
||||
ParentDump.WriteDump(child, file, problems.Add).Should().BeTrue(string.Join(" | ", problems));
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user