Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dfd47a9a54 |
No files matched your search
@@ -29,77 +29,6 @@ under a `## [x.y.z] - date` heading in the same commit that bumps `VERSION`, the
|
||||
|
||||
### Fixed
|
||||
|
||||
- **DLSS read "Unknown upscaler" on most titles while FSR was named.** Most DLSS titles call NGX directly, and no NGX
|
||||
hook may exist (the SDK's licence; `20_OPEN_QUESTIONS`), so the hook runs and sees nothing. The NVIDIA driver does
|
||||
report the feature per process, the Agent has stored that on every session since P2
|
||||
(`sessions.upscaler_driver_reported`) and the capture host has printed it since 2026-09-06 — **the App never read
|
||||
it.** It does now: where no hook named an upscaler and the driver reports NGX super resolution created and
|
||||
evaluated, the library, the session summary, the game page and the live card say **DLSS (driver-reported)** —
|
||||
attributed, identity only, never a quality. A hook's name still outranks it. Sessions already recorded show it too,
|
||||
because the column was always written. `unknown` itself now reads "Upscaler not identified". Nothing native changed.
|
||||
- **A measured DLSS preset is its name, not its number**: `DLSS Balanced`, not `DLSS 2` (`Domain.Metrics.UpscalerNames`,
|
||||
which `03_METRICS` had promised from the start). Only the Streamline route produces the byte; a value with no name
|
||||
is shown as stored. A preset derived from the render scale is still not shown — that is an open owner decision.
|
||||
|
||||
- **The Games card's platform and engine tags were empty white boxes in the light theme.** They were
|
||||
`ui:Badge Appearance="Secondary"`, whose WPF UI 4.3.0 trigger repaints the background only and keeps the default
|
||||
badge's on-accent foreground: near-white text on a near-white fill. They, and the edit dialog's "Detected" marker,
|
||||
are the App's own `TagPill` now, with the theme's secondary text; `ContrastTests` refuses a Secondary badge in App
|
||||
XAML beside the four palette appearances it already refused (`08_UI` §Contrast).
|
||||
- **A game imported from Steam could be a game that never hooks.** Steam names no executable, so the import guessed
|
||||
"the largest non-helper", and on GIRLS' FRONTLINE 2: EXILIUM that was the embedded browser
|
||||
`GF2_Exilium_Data\Plugins\ZFGameBrowser.exe`, not the 675 KB Unity player `GF2_Exilium.exe`. Everything downstream is
|
||||
keyed on the executable path, so hooking enabled on that row could never match the running game, while the same
|
||||
game added by its exe worked. The locator now ranks by the engines' own layouts (Unity `X.exe` beside `X_Data`,
|
||||
Unreal `*-Win64-Shipping.exe`), then by a name matching the install folder, then by size; it skips `X_Data\Plugins`
|
||||
and redistributables folders, knows `browser`/`webview`/`subprocess`/`analyzer`/`vconsole` as helpers, and walks four
|
||||
levels instead of three. Verified read-only over the owner's Steam library: GF2, Red Dead Redemption 2 (was the
|
||||
Rockstar launcher installer), Counter-Strike 2 (was `vconsole2.exe`), Rune Factory, Dying Light: The Beast (was
|
||||
nothing at all). **A row an earlier import created for the wrong executable is not rewritten**: remove it, or use
|
||||
the new button below.
|
||||
|
||||
### Added
|
||||
|
||||
- **Game page: the row's executable is shown, and "Change executable…" re-points it.** The remedy for a wrong import
|
||||
guess used to be remove-and-add. The row comes back exactly as a new game would — hooking off, no consent, pre-scan
|
||||
not run — with consent revoked over the pipe first, as removal does; a block is never cleared by it, and a path
|
||||
another row owns (in the library, or removed with its sessions kept) is refused.
|
||||
|
||||
### Changed
|
||||
|
||||
- **Dependencies, 2026-09-21.** The test framework moves from xUnit.net v3 3.2.2 to **4.0.1**, referenced as
|
||||
`xunit.v3.mtp-off` with `xunit.runner.visualstudio` 4.0.0: 4.0 makes Microsoft Testing Platform v2 the default of the
|
||||
plain `xunit.v3` package, and `build.ps1`'s gates are VSTest-shaped on purpose (the `XPlat Code Coverage` collector,
|
||||
the `results.trx` the struct-mirror gate and the 25-minute wall clock read), so the projects take the same 4.x
|
||||
framework through the variant xunit publishes for that. The tree carried no v2-era API; the one test change is a
|
||||
race 4.0.1's scheduler found on its first gate run: eight `App.Tests` classes write the process-wide `Strings.Culture`
|
||||
and ran in parallel, so `StringsTests` read "Settings" where it had just written `vi`. They share one collection now.
|
||||
Also: Dapper 2.1.86, Microsoft.Data.Sqlite / Microsoft.Extensions.Hosting / System.Diagnostics.EventLog 10.0.12,
|
||||
CsWin32 0.3.333, Roslynator 5.0.0, Meziantou.Analyzer 3.0.266, Microsoft.NET.Test.Sdk 18.10.1, NSubstitute 6.2.0.
|
||||
**Deliberately not moved:** `WPF-UI [4.3.0]` and `FluentAssertions [7.2.2]` (8.x is not an OSI licence), both pinned
|
||||
with their reasons in `Directory.Packages.props`. `legal/licenses/nuget/` is regenerated for the shipped packages
|
||||
that moved.
|
||||
|
||||
## [0.1.0-beta.2] - 2026-09-17
|
||||
|
||||
**The second pre-release.** The same unsigned installer as `0.1.0-beta.1`: verify its hash against
|
||||
`SHA256SUMS.txt`, then *More info → Run anyway*. What changed for a user: a finished session whose frame generation
|
||||
did not stay in one state — a menu, a loading screen — now shows the factor of its steady state with the share of
|
||||
the session it covers, where `0.1.0-beta.1` showed "factor not counted" for most real sessions; and three faults from
|
||||
the first day of use are fixed: an App started as administrator started another Agent every few seconds, and each of
|
||||
them recorded every game; closing the App ended in an error; and a crash dump could hang the process it described.
|
||||
|
||||
**Updating from `0.1.0-beta.1`:**
|
||||
|
||||
- **Quit the App (tray icon → Exit), then end every `FrameLedger.Agent.exe` in Task Manager before installing.** If the
|
||||
App was ever started as administrator, some Agents run elevated, and Task Manager can end those only when it runs
|
||||
as administrator itself.
|
||||
- On its first start the ledger migrates to schema 6. Sessions recorded before keep the frame-generation result they
|
||||
were stored with; the steady state applies to sessions recorded from this version on.
|
||||
- Sessions recorded while more than one Agent was running appear once per Agent. Nothing removes them automatically.
|
||||
|
||||
### Fixed
|
||||
|
||||
- **Closing the App no longer ends in a Fatal error and exit code 1 (2026-09-17).** Measured on the installed
|
||||
0.1.0-beta.1: `ui-*.log` recorded `ui: the run ended in an exception` — "the calling thread cannot access this object
|
||||
because a different thread owns it" — from `TrayHost.Dispose` on every close after an update check. The App waited
|
||||
|
||||
+12
-19
@@ -3,7 +3,7 @@
|
||||
<!--
|
||||
Central package management (docs/12_BUILD.md). Every version is pinned here
|
||||
and nowhere else, which also makes Dependabot PRs single-file diffs.
|
||||
All versions verified against nuget.org on 2026-08-02; re-verified and bumped 2026-09-21.
|
||||
All versions verified against nuget.org on 2026-08-02.
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
||||
@@ -28,7 +28,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Label="Hosting and logging">
|
||||
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="10.0.12" />
|
||||
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="10.0.10" />
|
||||
<PackageVersion Include="Serilog" Version="4.4.0" />
|
||||
<PackageVersion Include="Serilog.Extensions.Hosting" Version="10.0.0" />
|
||||
<PackageVersion Include="Serilog.Sinks.Console" Version="6.1.1" />
|
||||
@@ -37,8 +37,8 @@
|
||||
|
||||
<ItemGroup Label="Storage">
|
||||
<!-- No EF: Dapper over Microsoft.Data.Sqlite (CLAUDE.md pinned stack). -->
|
||||
<PackageVersion Include="Microsoft.Data.Sqlite" Version="10.0.12" />
|
||||
<PackageVersion Include="Dapper" Version="2.1.86" />
|
||||
<PackageVersion Include="Microsoft.Data.Sqlite" Version="10.0.10" />
|
||||
<PackageVersion Include="Dapper" Version="2.1.79" />
|
||||
<!--
|
||||
Transitive pin, not a direct dependency.
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Label="Interop, telemetry and packaging">
|
||||
<PackageVersion Include="Microsoft.Windows.CsWin32" Version="0.3.333" />
|
||||
<PackageVersion Include="Microsoft.Windows.CsWin32" Version="0.3.298" />
|
||||
<PackageVersion Include="Velopack" Version="1.2.0" />
|
||||
<!-- MPL-2.0. docs/18_GPU_VENDOR_APIS.md §L2 requires >= 0.9.6, and
|
||||
legal/THIRD_PARTY_NOTICES.md has a release-gate check that no
|
||||
@@ -64,26 +64,19 @@
|
||||
<PackageVersion Include="LibreHardwareMonitorLib" Version="0.9.6" />
|
||||
<!-- The crash witness (04_CAPTURE §Crash & exit classification): Application log events 1000/1001. In-box
|
||||
for WPF apps, a package for a class library on the Windows TFM. Microsoft, MIT. -->
|
||||
<PackageVersion Include="System.Diagnostics.EventLog" Version="10.0.12" />
|
||||
<PackageVersion Include="System.Diagnostics.EventLog" Version="10.0.10" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Label="Analyzers (build-time only)">
|
||||
<PackageVersion Include="Roslynator.Analyzers" Version="5.0.0" />
|
||||
<PackageVersion Include="Meziantou.Analyzer" Version="3.0.266" />
|
||||
<PackageVersion Include="Roslynator.Analyzers" Version="4.16.1" />
|
||||
<PackageVersion Include="Meziantou.Analyzer" Version="3.0.257" />
|
||||
<PackageVersion Include="Microsoft.VisualStudio.Threading.Analyzers" Version="18.7.23" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Label="Testing">
|
||||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.10.1" />
|
||||
<!--
|
||||
xUnit.net v3, 4.x line (2026-09-21). 4.0 made Microsoft Testing Platform v2 the default of the plain
|
||||
`xunit.v3` package and dropped MTP v1. build.ps1's gates are VSTest-shaped on purpose - the
|
||||
`XPlat Code Coverage` collector, `results.trx` read by the struct-mirror gate and by Invoke-TestsWithin -
|
||||
so the projects reference the SAME 4.x framework through its `mtp-off` variant, the one xunit publishes
|
||||
for exactly this. Moving to MTP v2 is a build.ps1 change, not a version bump; do them together or not at all.
|
||||
-->
|
||||
<PackageVersion Include="xunit.v3.mtp-off" Version="4.0.1" />
|
||||
<PackageVersion Include="xunit.runner.visualstudio" Version="4.0.0" />
|
||||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.8.1" />
|
||||
<PackageVersion Include="xunit.v3" Version="3.2.2" />
|
||||
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />
|
||||
<!--
|
||||
FluentAssertions is pinned to the 7.x line ON PURPOSE, and must not be
|
||||
bumped to 8.x without redoing the licence analysis.
|
||||
@@ -101,7 +94,7 @@
|
||||
Reviewed 2026-08-02. See docs/20_OPEN_QUESTIONS.md §G.
|
||||
-->
|
||||
<PackageVersion Include="FluentAssertions" Version="[7.2.2]" />
|
||||
<PackageVersion Include="NSubstitute" Version="6.2.0" />
|
||||
<PackageVersion Include="NSubstitute" Version="6.0.0" />
|
||||
<PackageVersion Include="coverlet.collector" Version="10.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
> No telemetry. No accounts. All data stays on your machine.
|
||||
|
||||
<!-- accuracy-block:begin -->
|
||||
> ⚠ **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
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-09-16.** The software is pre-alpha; its first
|
||||
> **pre-release is `0.1.0-beta.1`** (2026-09-16), 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, and
|
||||
@@ -36,15 +36,11 @@
|
||||
> - **Frame generation (Direct3D titles only):** the Displayed rate is counted from presents, plus the
|
||||
> presents DXGI's own counter saw on the same swap chain that the hook did not; the Native rate from
|
||||
> the vendor's own per-frame calls (NVIDIA Streamline, AMD FidelityFX) where the title makes them, and
|
||||
> `N/A` where it does not. When frame generation did not stay in one state for the whole session
|
||||
> (menus, loading screens, a settings change), no session-wide factor is shown: the factor, Native and
|
||||
> Displayed are those of the state that held longest — five-second windows whose ratios agree within
|
||||
> 10 %, covering at least 10 s and 10 % of the time the game was presenting — and are always shown with
|
||||
> the share of the session they cover; with no such state, the reason is shown instead. DLSS-G and FSR
|
||||
> FG are named from the calls the game makes; any other generator (XeSS-FG, one compiled into the game)
|
||||
> is shown only as active with the technology not identified, and is never named. Where a technology is
|
||||
> named but its frames could not be counted, or frame generation is not measured, the software shows
|
||||
> **Presented FPS** with a note on what it may include — never a Native figure.
|
||||
> `N/A` where it does not. DLSS-G and FSR FG are named from the calls the game makes; any other
|
||||
> generator (XeSS-FG, one compiled into the game) is shown only as active with the technology not
|
||||
> identified, and is never named. Where a technology is named but its frames could not be counted, or
|
||||
> frame generation is not measured, the software shows **Presented FPS** with a note on what it may
|
||||
> include — never a Native figure.
|
||||
> - **Ray tracing:** Yes/No measured on Direct3D 12 from ray-dispatch and acceleration-structure-build
|
||||
> calls; the technique and path tracing are `N/A`, and so is ray tracing on other APIs.
|
||||
> - **Video memory:** in use on the whole graphics card, recorded from Windows and GPU-driver telemetry
|
||||
@@ -128,7 +124,7 @@ Elevation is **optional — for everything.** Hooked capture is the normal path
|
||||
|
||||
## Install
|
||||
|
||||
> **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`.
|
||||
> **The first pre-release is `v0.1.0-beta.1` (2026-09-16).** It is a pre-release: read `CHANGELOG.md`'s section for it — what it measures, what it does not yet — 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**.
|
||||
@@ -156,4 +152,4 @@ If you find a game with anti-cheat that FrameLedger fails to detect, please open
|
||||
|
||||
---
|
||||
|
||||
**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).
|
||||
**Status:** pre-alpha, under active development; first pre-release `v0.1.0-beta.1` (2026-09-16). Roadmap: [`docs/15_ROADMAP.md`](docs/15_ROADMAP.md).
|
||||
@@ -490,12 +490,6 @@ From the upscaler hooks we get, per frame:
|
||||
> the conflation the record had already removed.
|
||||
- `renderW × renderH` vs `outputW × outputH` → **exact upscale ratio**: `sqrt((outW×outH)/(renW×renH))`, reported both as a ratio (`1.50×`) and a percentage (`67% render scale`).
|
||||
- `upscalerQuality`: the vendor's own quality enum (DLSS Performance/Balanced/Quality/DLAA, XeSS quality setting, FSR preset), mapped to a display name per vendor in `Domain.UpscalerNames`.
|
||||
> **`Domain.Metrics.UpscalerNames` exists since 2026-09-21; this line promised it from the start and the UI printed the
|
||||
> raw integer until then.** It holds ONE table because one producer exists: `sl::DLSSMode` as the title chained it
|
||||
> into `slEvaluateFeature` (1 Performance · 2 Balanced · 3 Quality · 4 Ultra Performance · 5 Ultra Quality · 6 DLAA;
|
||||
> `eOff` and anything past `eCount` never reach a row). The ffx-api dispatch carries no quality and XeSS has no hook,
|
||||
> so there is nothing of theirs to name. A value the table does not know is shown as stored. It names the MEASURED
|
||||
> byte only — a label derived from the render/output ratio is `HANDOFF` §7a's owner decision, still not taken.
|
||||
- Resolution changes mid-session (user changed settings, or dynamic resolution scaling) produce **segments**: the session stores a segment list `(startFrame, renderW/H, outputW/H, upscaler, quality)`. Aggregates report the dominant segment plus a "settings changed during session" flag — averaging across a settings change is the classic way benchmark numbers become meaningless.
|
||||
|
||||
> **Two segmentation axes exist, they compose in ONE order, and neither document said so until
|
||||
@@ -551,18 +545,6 @@ Tier 2 has none of this: `upscaler = unknown`, ratio `N/A`.
|
||||
> than resolved*. Beside an `N/A` with the bit clear it prints the driver's negative, attributed, which
|
||||
> says nothing about FSR or XeSS. **The negative is owed** (§H5): a title with DLSS switched off should
|
||||
> read the bit clear; if it does not, the rung is withdrawn.
|
||||
>
|
||||
> **The App states the rung since 2026-09-21; until then only the capture host's console did.** The Agent has written
|
||||
> `sessions.upscaler_driver_reported` since P2, and nothing under `FrameLedger.App` read it, so every NGX-direct DLSS
|
||||
> title read "Unknown upscaler" in the library while FSR — whose dispatch the hook does see — was named (the owner's
|
||||
> report). `Formats.Upscaler(token, quality, driverReported)` is the ladder in one place: a hook's name outranks
|
||||
> everything and takes its measured preset; where no hook named one (`unknown`, or no claim) and the driver reports the
|
||||
> feature, the text is **`DLSS (driver-reported)`** — attributed, identity only, never a quality even when a byte is
|
||||
> on the row; otherwise the token's own text, and `unknown` now reads "Upscaler not identified" (a hook ran and saw
|
||||
> nothing — which is what it means — rather than "Unknown upscaler", which read as a product). The live card gets the
|
||||
> same word through `SessionProgress.upscalerDriverReported` (`07_IPC`). Segments carry no driver word: the driver's
|
||||
> bookkeeping is per process, not per settings change. **Nothing native changed and no NGX hook was added**: the
|
||||
> licence bar in `20_OPEN_QUESTIONS` stands.
|
||||
|
||||
## RT / PT / RR — evidence-based tri-state
|
||||
|
||||
|
||||
+2
-12
@@ -192,18 +192,8 @@ Everything else in the table is in the data and has a fixture; `rules-validate.p
|
||||
> database is copied to a temporary directory and the copy opened read-only, because the running app holds it in
|
||||
> WAL mode. One log line says what was consulted: `import: itch — butler.db read: 1 location(s), 2 cave(s), …`).
|
||||
> **Two stores do not name the game's executable** (Steam,
|
||||
> itch-by-receipt): `ExecutableLocator` walks the install ~~three~~ **four** levels deep, drops the helpers by name
|
||||
> fragment, everything under a Unity `X_Data\Plugins` folder and every redistributables/prerequisites folder, and then
|
||||
> **ranks** what is left — ~~takes the largest~~ an executable the engine's own layout names as the game (Unity: `X.exe`
|
||||
> beside `X_Data`; Unreal: `*-Win64-Shipping.exe`) beats one named after the install folder, which beats a stranger, and
|
||||
> size decides only between equals. "The largest wins" was measured wrong 2026-09-21 on GIRLS' FRONTLINE 2: EXILIUM:
|
||||
> the import chose `GF2_Exilium_Data\Plugins\ZFGameBrowser.exe` (1,082,944 bytes) over the 675,392-byte Unity player, and
|
||||
> because the watcher, consent and the gate are keyed on the executable path, hooking enabled on that row could never
|
||||
> match the game. The same pass fixed Red Dead Redemption 2 (the 140 MB launcher installer under `Redistributables`),
|
||||
> Counter-Strike 2 (`vconsole2.exe`), Rune Factory (root bootstrapper vs the shipping binary) and Dying Light: The
|
||||
> Beast (the game sits four levels down). Still a *guess the review list marks as such*, and since the same date the
|
||||
> game page shows the row's executable and **Change executable…** re-points it (hooking off and unconsented afterwards,
|
||||
> exactly as a new game; a block is never cleared by it). GOG's `exe` and Epic's `LaunchExecutable` are the store's
|
||||
> itch-by-receipt): `ExecutableLocator` walks the install three levels deep, drops the helpers by name fragment and takes
|
||||
> the largest — a *guess the review list marks as such*; GOG's `exe` and Epic's `LaunchExecutable` are the store's
|
||||
> own. The review (`ImportReviewPrompt`) ticks only what can be imported: a row already in the library or with no
|
||||
> executable on disk cannot be. Every added row lands exactly as File ▸ Add game… lands it — hooking off — and
|
||||
> the store's platform, id and version go through `IGameRepository.ApplyStoreMetadataAsync` under the same
|
||||
|
||||
+1
-1
@@ -334,7 +334,7 @@ Unchanged in spirit from v1, bumped to `v2` for the new message set.
|
||||
| `Shutdown` | UI→A | graceful stop → `ShutdownAck`, then the host stops (sessions finalize inside its grace window). *(Built 2026-09-13, PR-1b: `IAgentLifetime`, the host's under `--serve`, a logged no-op under `--console`.)* |
|
||||
| `SweepRetention` | UI→A | **no payload** — a trigger, like `UpdateRules`: the Agent applies `06_DATA_MODEL` §Retention to every game with the `retention.raw_sessions_per_game` it reads itself → `SweepRetentionAck { keep, games, sessions }` (`keep` 0 = unlimited, and then nothing was swept). *(Built 2026-09-15, P4 PR-7, for Tools ▸ Database maintenance: `Application.Recording.RetentionSweep` over `ISessionRepository.SweepRetentionAllAsync`, composed into `AgentCommandHandler` under `--serve`. The client names no number because the rows are the Agent's (§Writer ownership). Additive: an older Agent answers `Error UnknownType`, which the dialog reads as "restart the Agent". Carries no safety fact.)* |
|
||||
| `SessionStarted` | A→UI | `{ sessionGuid, gameId, gameName, pid, tier, startedAt }` — **published at the attach**, i.e. when the session becomes Tier 1 and the live card has something to show; a session that never attaches has no `SessionStarted`, only its `SessionCompleted` (tier 2) and, when a refusal or error caused that, the event below that names it |
|
||||
| `SessionProgress` | A→UI | 1 Hz: `{ sessionGuid, elapsedS, presents5s, presentedFps5s?, presentedQualifier, nativeFps5s?, displayedFps5s?, fgFactor?, fgMode, upscaler?, upscalerQuality?, upscalerDriverReported?, renderW/H?, outputW/H?, rtActive?, gpuTempC?, cpuTempC?, vramProcMb?, latencyUs?, fgRefusal?, fgRuntimeCensus? }` — a 5 s rolling window over the ring through the SAME Domain calculators the row uses (`SessionProgressCalculator`, D13). **`upscalerDriverReported` added 2026-09-21, optional:** `dlss` when the NVIDIA driver reports an NGX super-resolution feature created and evaluated in the target (`03_METRICS` §The driver-reported rung), so the live card says `DLSS (driver-reported)` where no hook can name the upscaler; identity only. **Two fields added 2026-09-14, both optional (an older client ignores them, §C):** `fgRefusal` is the row's `fg_refusal` (schema 0003) — present when `fgMode` names a technology and `fgFactor` is absent, so the live card can say "DLSS-G active — factor not counted" rather than N/A; `fgRuntimeCensus` is the raw census so the `fg_runtime_loaded` chip can name the module. **Rule 6 at the wire (2026-09-13):** `nativeFps5s` / `displayedFps5s` / `fgFactor` are present only when frame generation was measured in the window; otherwise `presentedFps5s` stands alone with `presentedQualifier` (`census_not_run` · `no_fg_runtime` · `fg_runtime_loaded` · `none_withheld`, the row's `presented_qualifier` from the same function). Every unmeasured field is absent, never 0. Suppressed when no client is connected |
|
||||
| `SessionProgress` | A→UI | 1 Hz: `{ sessionGuid, elapsedS, presents5s, presentedFps5s?, presentedQualifier, nativeFps5s?, displayedFps5s?, fgFactor?, fgMode, upscaler?, upscalerQuality?, renderW/H?, outputW/H?, rtActive?, gpuTempC?, cpuTempC?, vramProcMb?, latencyUs?, fgRefusal?, fgRuntimeCensus? }` — a 5 s rolling window over the ring through the SAME Domain calculators the row uses (`SessionProgressCalculator`, D13). **Two fields added 2026-09-14, both optional (an older client ignores them, §C):** `fgRefusal` is the row's `fg_refusal` (schema 0003) — present when `fgMode` names a technology and `fgFactor` is absent, so the live card can say "DLSS-G active — factor not counted" rather than N/A; `fgRuntimeCensus` is the raw census so the `fg_runtime_loaded` chip can name the module. **Rule 6 at the wire (2026-09-13):** `nativeFps5s` / `displayedFps5s` / `fgFactor` are present only when frame generation was measured in the window; otherwise `presentedFps5s` stands alone with `presentedQualifier` (`census_not_run` · `no_fg_runtime` · `fg_runtime_loaded` · `none_withheld`, the row's `presented_qualifier` from the same function). Every unmeasured field is absent, never 0. Suppressed when no client is connected |
|
||||
| `SessionCompleted` | A→UI | `{ sessionGuid, sessionId?, exitStatus, tier, finalize, reason }` — UI loads the full row from SQLite; `sessionId` is null and `finalize` is `discarded` when the row was not stored (under the minimum length); `exitStatus` is the row's vocabulary (`normal` · `crashed` · `unhooked_safety` · `degraded`); `reason` is the loop's `SessionEndReason` |
|
||||
| `CaptureRefused` | A→UI | `{ gameId, gameName, reason, family?, signal? }` — **guard fired**; UI shows the plain-language explanation — ~~and the Tier-2 offer~~; there is no alternative measurement to offer, only the option to record the session unmeasured (`08_UI` §Safety events). *(Built: for `RefusedByGuard`, `RefusedPreviouslyBlocked`, `RefusedKillSwitch` and `PreScanCouldNotVerify` — the last with no family, because "could not verify" is neither a hit nor a pass; `family`/`signal` are the verdict's. A game merely not enabled or not consented raises nothing: that is an ordinary Tier-2 row, not a refusal to explain.)* |
|
||||
| `CaptureDegraded` | A→UI | `{ sessionGuid, from: 1, to: 2, reason }` — Tier 1 → Tier 2 mid-flight, or overlay self-disabled. **Under a two-rung ladder this means measurement STOPPED**, not that it continued at lower fidelity, and the notice must say so. *(Built: `SupervisionLost`, `WriterSelfDisabled`, `WriterStoppedBlocklisted`, `WriterNeverInstalledHooks`, `SupervisionFaulted`, `KillSwitchEngaged` — `RecordedSessionEvents.Classify` is the table.)* |
|
||||
|
||||
+1
-14
@@ -160,10 +160,7 @@ All screens are `Page`s registered with the navigation page provider and navigat
|
||||
> FIRST when it was on. Detail: header (name, publisher · version · store · engine, last session's date and
|
||||
> API, the last hooked session's `FpsReadout`, the three chips resolved with the annotation and the game
|
||||
> default — `Application.TriState.TriStateResolution`), Edit… (FR-1.3, a `ContentDialog` badging detected
|
||||
> 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), **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
|
||||
> fields), **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
|
||||
@@ -384,16 +381,6 @@ palette per theme, chosen with the theme).
|
||||
> default accent; a user's system accent replaces it at runtime through `ApplicationThemeManager`, and WPF UI picks the
|
||||
> on-accent text for it.
|
||||
>
|
||||
> **And `Secondary` was a second hole, closed 2026-09-21** (the owner's screenshot: two empty white boxes where a Steam
|
||||
> title's platform and engine were, beside a readable "Hooking off"). WPF UI 4.3.0's `Secondary` trigger repaints only
|
||||
> the badge's background (`ControlFillColorDefault`); `Foreground` stays `BadgeForeground`, the on-accent colour of the
|
||||
> DEFAULT badge, which in the light theme is near-white text on a near-white fill. The hooking pill beside it was
|
||||
> readable because it sets its own foreground. The platform and engine tags and the Detected marker are now a `Border`
|
||||
> in the `TagPill` style with `TagPillText` (secondary text on the Pill's fill — the pair `ContrastTests` already
|
||||
> measures in both themes as "hooking off"), and `ContrastTests.NoBadgeUsesTheSecondaryAppearance` refuses a literal
|
||||
> `Appearance="Secondary"` badge in the App's XAML. The title bar's Agent badge binds its appearance and never binds
|
||||
> Secondary.
|
||||
>
|
||||
> The Dashboard's FG qualifier chip was reported with it and had the other defect: not contrast (caution fill under
|
||||
> primary text, ≈ 12:1) but **clipping** — the pill sat in a star column with no trimming, so a sentence-length
|
||||
> qualifier overflowed the row. The qualifier text trims with an ellipsis at 260 px (the readout's tooltip carries the
|
||||
|
||||
+1
-3
@@ -41,9 +41,7 @@ FrameLedger uses the **`poli0981/.github` ops repo** where its templates fit, an
|
||||
child process now (`Infrastructure.Diagnostics.ParentDump`, `FrameLedger.Agent.exe --write-crash-dump`; `10_LOGGING`
|
||||
§Crash handling). And **`--blame-hang` did not stop the hung xUnit v3 executable** — still alive four minutes after
|
||||
a 60 s hang timeout — so `build.ps1` runs `dotnet test` under a 25-minute wall-clock limit instead, kills the tree on
|
||||
expiry, and names the test projects that wrote no `results.trx`. *(Measured on xUnit v3 3.2.2. The suites moved to
|
||||
4.0.1 on 2026-09-21 as `xunit.v3.mtp-off`, still under VSTest; whether `--blame-hang` stops a hung 4.x executable is
|
||||
unmeasured, and the wall clock stays either way.)*
|
||||
expiry, and names the test projects that wrote no `results.trx`.
|
||||
- **Two more shapes had one cause, found and fixed 2026-09-16** after four failures in one evening's merge train:
|
||||
`AKilledHostLeavesAPartialThatRecoverTurnsIntoAnInterruptedSession` ("the process cannot access the file …
|
||||
`.partial`") and `WithNoConsentRecordTheHostRefusesAndNothingIsEverInjected` (a leftover consent record). The
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
# 14 — Testing
|
||||
|
||||
Managed: xUnit.net v3 4.x (the `xunit.v3.mtp-off` variant since 2026-09-21 — `build.ps1` runs the suites under VSTest for the coverage collector and `results.trx`; `Directory.Packages.props` says why) + FluentAssertions 7.x + NSubstitute. Native: Catch2. Coverage goal ≥ 80% on `Domain` + `Application`; **Domain metric calculators ≥ 95% or the PR fails**.
|
||||
Managed: xUnit + FluentAssertions + NSubstitute. Native: Catch2. Coverage goal ≥ 80% on `Domain` + `Application`; **Domain metric calculators ≥ 95% or the PR fails**.
|
||||
|
||||
## Safety-guard tests (highest priority — these protect users, not code quality)
|
||||
|
||||
|
||||
@@ -146,11 +146,8 @@ Native `Menu`, `TabControl`, `ComboBox`, `Slider`, `ListView` are fine — the `
|
||||
- Colors **only** via `{DynamicResource …}` theme keys, e.g. `TextFillColorPrimaryBrush`, `TextFillColorSecondaryBrush`, `ControlFillColorDefaultBrush`, `CardBackgroundFillColorDefaultBrush`, `ApplicationBackgroundBrush`, `AccentTextFillColorPrimaryBrush`, `SystemFillColorCriticalBrush`. `DynamicResource` always (theme can change at runtime); `StaticResource` for theme brushes is a review-blocking bug.
|
||||
- **`ui:Badge` `Appearance="Info"` / `Caution` / `Danger` / `Success` are NOT theme colours.** Their backgrounds are
|
||||
`Palette*Brush` from WPF UI's `Palette.xaml` — one fixed Material palette shared by both themes — under the theme's
|
||||
text: Info is white on `#03A9F4` in dark (2.6:1), measured 2026-09-16 on the Games card. ~~Use `Secondary` (theme
|
||||
fill)~~ **`Secondary` is refused too since 2026-09-21**: its trigger repaints the background only and keeps the default
|
||||
badge's on-accent `BadgeForeground`, near-white on near-white in the light theme. Use the `TagPill` + `TagPillText`
|
||||
styles (`Styles/FrameLedger.xaml`), or the `Pill` style with a `SystemFillColor*BackgroundBrush` and an explicit text
|
||||
brush; `ContrastTests` refuses all five (`08_UI` §Contrast).
|
||||
text: Info is white on `#03A9F4` in dark (2.6:1), measured 2026-09-16 on the Games card. Use `Secondary` (theme fill)
|
||||
or the `Pill` style with a `SystemFillColor*BackgroundBrush`; `ContrastTests` refuses the four (`08_UI` §Contrast).
|
||||
- Do **not** set `Background` on `FluentWindow` (kills Mica). Page backgrounds transparent by default.
|
||||
- Exception to the no-hex rule: the chart palette — defined once per theme in `Styles/ChartPalette.xaml` (two dictionaries), never inline.
|
||||
|
||||
|
||||
+7
-11
@@ -11,8 +11,8 @@
|
||||
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-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
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-09-16.** The software is pre-alpha; its first
|
||||
> **pre-release is `0.1.0-beta.1`** (2026-09-16), 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, and
|
||||
@@ -42,15 +42,11 @@
|
||||
> - **Frame generation (Direct3D titles only):** the Displayed rate is counted from presents, plus the
|
||||
> presents DXGI's own counter saw on the same swap chain that the hook did not; the Native rate from
|
||||
> the vendor's own per-frame calls (NVIDIA Streamline, AMD FidelityFX) where the title makes them, and
|
||||
> `N/A` where it does not. When frame generation did not stay in one state for the whole session
|
||||
> (menus, loading screens, a settings change), no session-wide factor is shown: the factor, Native and
|
||||
> Displayed are those of the state that held longest — five-second windows whose ratios agree within
|
||||
> 10 %, covering at least 10 s and 10 % of the time the game was presenting — and are always shown with
|
||||
> the share of the session they cover; with no such state, the reason is shown instead. DLSS-G and FSR
|
||||
> FG are named from the calls the game makes; any other generator (XeSS-FG, one compiled into the game)
|
||||
> is shown only as active with the technology not identified, and is never named. Where a technology is
|
||||
> named but its frames could not be counted, or frame generation is not measured, the software shows
|
||||
> **Presented FPS** with a note on what it may include — never a Native figure.
|
||||
> `N/A` where it does not. DLSS-G and FSR FG are named from the calls the game makes; any other
|
||||
> generator (XeSS-FG, one compiled into the game) is shown only as active with the technology not
|
||||
> identified, and is never named. Where a technology is named but its frames could not be counted, or
|
||||
> frame generation is not measured, the software shows **Presented FPS** with a note on what it may
|
||||
> include — never a Native figure.
|
||||
> - **Ray tracing:** Yes/No measured on Direct3D 12 from ray-dispatch and acceleration-structure-build
|
||||
> calls; the technique and path tracing are `N/A`, and so is ray tracing on other APIs.
|
||||
> - **Video memory:** in use on the whole graphics card, recorded from Windows and GPU-driver telemetry
|
||||
|
||||
+7
-11
@@ -72,8 +72,8 @@ 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-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
|
||||
> ⚠ **What FrameLedger actually measures today — 2026-09-16.** The software is pre-alpha; its first
|
||||
> **pre-release is `0.1.0-beta.1`** (2026-09-16), 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, and
|
||||
@@ -103,15 +103,11 @@ Frame timing is derived from high-resolution timestamps taken at the moment the
|
||||
> - **Frame generation (Direct3D titles only):** the Displayed rate is counted from presents, plus the
|
||||
> presents DXGI's own counter saw on the same swap chain that the hook did not; the Native rate from
|
||||
> the vendor's own per-frame calls (NVIDIA Streamline, AMD FidelityFX) where the title makes them, and
|
||||
> `N/A` where it does not. When frame generation did not stay in one state for the whole session
|
||||
> (menus, loading screens, a settings change), no session-wide factor is shown: the factor, Native and
|
||||
> Displayed are those of the state that held longest — five-second windows whose ratios agree within
|
||||
> 10 %, covering at least 10 s and 10 % of the time the game was presenting — and are always shown with
|
||||
> the share of the session they cover; with no such state, the reason is shown instead. DLSS-G and FSR
|
||||
> FG are named from the calls the game makes; any other generator (XeSS-FG, one compiled into the game)
|
||||
> is shown only as active with the technology not identified, and is never named. Where a technology is
|
||||
> named but its frames could not be counted, or frame generation is not measured, the software shows
|
||||
> **Presented FPS** with a note on what it may include — never a Native figure.
|
||||
> `N/A` where it does not. DLSS-G and FSR FG are named from the calls the game makes; any other
|
||||
> generator (XeSS-FG, one compiled into the game) is shown only as active with the technology not
|
||||
> identified, and is never named. Where a technology is named but its frames could not be counted, or
|
||||
> frame generation is not measured, the software shows **Presented FPS** with a note on what it may
|
||||
> include — never a Native figure.
|
||||
> - **Ray tracing:** Yes/No measured on Direct3D 12 from ray-dispatch and acceleration-structure-build
|
||||
> calls; the technique and path tracing are `N/A`, and so is ray tracing on other APIs.
|
||||
> - **Video memory:** in use on the whole graphics card, recorded from Windows and GPU-driver telemetry
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
Dapper 2.1.86
|
||||
Dapper 2.1.79
|
||||
|
||||
Licence declared: Apache-2.0
|
||||
Text below: the shared Apache-2.0 text; the package ships no licence file
|
||||
Copyright: 2019 Stack Exchange, Inc.
|
||||
Authors: Sam Saffron,Marc Gravell,Nick Craver
|
||||
Project: https://dapperlib.dev/
|
||||
Project: https://github.com/DapperLib/Dapper
|
||||
Ships in: Agent, App
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
@@ -9,7 +9,7 @@ from the runtime packs the publish used.
|
||||
|---|---|---|---|---|
|
||||
| BlackSharp.Core | 1.0.7 | MPL-2.0 | Agent, App | [BlackSharp.Core.txt](BlackSharp.Core.txt) |
|
||||
| CommunityToolkit.Mvvm | 8.4.2 | MIT | App | [CommunityToolkit.Mvvm.txt](CommunityToolkit.Mvvm.txt) |
|
||||
| Dapper | 2.1.86 | Apache-2.0 | Agent, App | [Dapper.txt](Dapper.txt) |
|
||||
| Dapper | 2.1.79 | Apache-2.0 | Agent, App | [Dapper.txt](Dapper.txt) |
|
||||
| DiskInfoToolkit | 1.1.2 | MPL-2.0 | Agent, App | [DiskInfoToolkit.txt](DiskInfoToolkit.txt) |
|
||||
| H.GeneratedIcons.System.Drawing | 2.4.1 | MIT | App | [H.GeneratedIcons.System.Drawing.txt](H.GeneratedIcons.System.Drawing.txt) |
|
||||
| H.NotifyIcon | 2.4.1 | MIT | App | [H.NotifyIcon.txt](H.NotifyIcon.txt) |
|
||||
@@ -18,34 +18,34 @@ from the runtime packs the publish used.
|
||||
| HarfBuzzSharp.NativeAssets.Win32 | 8.3.1.1 | MIT | App | [HarfBuzzSharp.NativeAssets.Win32.txt](HarfBuzzSharp.NativeAssets.Win32.txt) |
|
||||
| HidSharp | 2.6.4 | the file LICENSE.txt in the package | Agent, App | [HidSharp.txt](HidSharp.txt) |
|
||||
| LibreHardwareMonitorLib | 0.9.6 | MPL-2.0 | Agent, App | [LibreHardwareMonitorLib.txt](LibreHardwareMonitorLib.txt) |
|
||||
| Microsoft.Data.Sqlite.Core | 10.0.12 | MIT | Agent, App | [Microsoft.Data.Sqlite.Core.txt](Microsoft.Data.Sqlite.Core.txt) |
|
||||
| Microsoft.Extensions.Configuration | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Configuration.txt](Microsoft.Extensions.Configuration.txt) |
|
||||
| Microsoft.Extensions.Configuration.Abstractions | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Configuration.Abstractions.txt](Microsoft.Extensions.Configuration.Abstractions.txt) |
|
||||
| Microsoft.Extensions.Configuration.Binder | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Configuration.Binder.txt](Microsoft.Extensions.Configuration.Binder.txt) |
|
||||
| Microsoft.Extensions.Configuration.CommandLine | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Configuration.CommandLine.txt](Microsoft.Extensions.Configuration.CommandLine.txt) |
|
||||
| Microsoft.Extensions.Configuration.EnvironmentVariables | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Configuration.EnvironmentVariables.txt](Microsoft.Extensions.Configuration.EnvironmentVariables.txt) |
|
||||
| Microsoft.Extensions.Configuration.FileExtensions | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Configuration.FileExtensions.txt](Microsoft.Extensions.Configuration.FileExtensions.txt) |
|
||||
| Microsoft.Extensions.Configuration.Json | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Configuration.Json.txt](Microsoft.Extensions.Configuration.Json.txt) |
|
||||
| Microsoft.Extensions.Configuration.UserSecrets | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Configuration.UserSecrets.txt](Microsoft.Extensions.Configuration.UserSecrets.txt) |
|
||||
| Microsoft.Extensions.DependencyInjection | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.DependencyInjection.txt](Microsoft.Extensions.DependencyInjection.txt) |
|
||||
| Microsoft.Extensions.DependencyInjection.Abstractions | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.DependencyInjection.Abstractions.txt](Microsoft.Extensions.DependencyInjection.Abstractions.txt) |
|
||||
| Microsoft.Extensions.Diagnostics | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Diagnostics.txt](Microsoft.Extensions.Diagnostics.txt) |
|
||||
| Microsoft.Extensions.Diagnostics.Abstractions | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Diagnostics.Abstractions.txt](Microsoft.Extensions.Diagnostics.Abstractions.txt) |
|
||||
| Microsoft.Extensions.FileProviders.Abstractions | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.FileProviders.Abstractions.txt](Microsoft.Extensions.FileProviders.Abstractions.txt) |
|
||||
| Microsoft.Extensions.FileProviders.Physical | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.FileProviders.Physical.txt](Microsoft.Extensions.FileProviders.Physical.txt) |
|
||||
| Microsoft.Extensions.FileSystemGlobbing | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.FileSystemGlobbing.txt](Microsoft.Extensions.FileSystemGlobbing.txt) |
|
||||
| Microsoft.Extensions.Hosting | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Hosting.txt](Microsoft.Extensions.Hosting.txt) |
|
||||
| Microsoft.Extensions.Hosting.Abstractions | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Hosting.Abstractions.txt](Microsoft.Extensions.Hosting.Abstractions.txt) |
|
||||
| Microsoft.Extensions.Logging | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Logging.txt](Microsoft.Extensions.Logging.txt) |
|
||||
| Microsoft.Extensions.Logging.Abstractions | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Logging.Abstractions.txt](Microsoft.Extensions.Logging.Abstractions.txt) |
|
||||
| Microsoft.Extensions.Logging.Configuration | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Logging.Configuration.txt](Microsoft.Extensions.Logging.Configuration.txt) |
|
||||
| Microsoft.Extensions.Logging.Console | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Logging.Console.txt](Microsoft.Extensions.Logging.Console.txt) |
|
||||
| Microsoft.Extensions.Logging.Debug | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Logging.Debug.txt](Microsoft.Extensions.Logging.Debug.txt) |
|
||||
| Microsoft.Extensions.Logging.EventLog | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Logging.EventLog.txt](Microsoft.Extensions.Logging.EventLog.txt) |
|
||||
| Microsoft.Extensions.Logging.EventSource | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Logging.EventSource.txt](Microsoft.Extensions.Logging.EventSource.txt) |
|
||||
| Microsoft.Extensions.Options | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Options.txt](Microsoft.Extensions.Options.txt) |
|
||||
| Microsoft.Extensions.Options.ConfigurationExtensions | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Options.ConfigurationExtensions.txt](Microsoft.Extensions.Options.ConfigurationExtensions.txt) |
|
||||
| Microsoft.Extensions.Primitives | 10.0.12 | MIT | Agent, App | [Microsoft.Extensions.Primitives.txt](Microsoft.Extensions.Primitives.txt) |
|
||||
| Microsoft.Data.Sqlite.Core | 10.0.10 | MIT | Agent, App | [Microsoft.Data.Sqlite.Core.txt](Microsoft.Data.Sqlite.Core.txt) |
|
||||
| Microsoft.Extensions.Configuration | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Configuration.txt](Microsoft.Extensions.Configuration.txt) |
|
||||
| Microsoft.Extensions.Configuration.Abstractions | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Configuration.Abstractions.txt](Microsoft.Extensions.Configuration.Abstractions.txt) |
|
||||
| Microsoft.Extensions.Configuration.Binder | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Configuration.Binder.txt](Microsoft.Extensions.Configuration.Binder.txt) |
|
||||
| Microsoft.Extensions.Configuration.CommandLine | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Configuration.CommandLine.txt](Microsoft.Extensions.Configuration.CommandLine.txt) |
|
||||
| Microsoft.Extensions.Configuration.EnvironmentVariables | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Configuration.EnvironmentVariables.txt](Microsoft.Extensions.Configuration.EnvironmentVariables.txt) |
|
||||
| Microsoft.Extensions.Configuration.FileExtensions | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Configuration.FileExtensions.txt](Microsoft.Extensions.Configuration.FileExtensions.txt) |
|
||||
| Microsoft.Extensions.Configuration.Json | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Configuration.Json.txt](Microsoft.Extensions.Configuration.Json.txt) |
|
||||
| Microsoft.Extensions.Configuration.UserSecrets | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Configuration.UserSecrets.txt](Microsoft.Extensions.Configuration.UserSecrets.txt) |
|
||||
| Microsoft.Extensions.DependencyInjection | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.DependencyInjection.txt](Microsoft.Extensions.DependencyInjection.txt) |
|
||||
| Microsoft.Extensions.DependencyInjection.Abstractions | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.DependencyInjection.Abstractions.txt](Microsoft.Extensions.DependencyInjection.Abstractions.txt) |
|
||||
| Microsoft.Extensions.Diagnostics | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Diagnostics.txt](Microsoft.Extensions.Diagnostics.txt) |
|
||||
| Microsoft.Extensions.Diagnostics.Abstractions | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Diagnostics.Abstractions.txt](Microsoft.Extensions.Diagnostics.Abstractions.txt) |
|
||||
| Microsoft.Extensions.FileProviders.Abstractions | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.FileProviders.Abstractions.txt](Microsoft.Extensions.FileProviders.Abstractions.txt) |
|
||||
| Microsoft.Extensions.FileProviders.Physical | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.FileProviders.Physical.txt](Microsoft.Extensions.FileProviders.Physical.txt) |
|
||||
| Microsoft.Extensions.FileSystemGlobbing | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.FileSystemGlobbing.txt](Microsoft.Extensions.FileSystemGlobbing.txt) |
|
||||
| Microsoft.Extensions.Hosting | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Hosting.txt](Microsoft.Extensions.Hosting.txt) |
|
||||
| Microsoft.Extensions.Hosting.Abstractions | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Hosting.Abstractions.txt](Microsoft.Extensions.Hosting.Abstractions.txt) |
|
||||
| Microsoft.Extensions.Logging | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Logging.txt](Microsoft.Extensions.Logging.txt) |
|
||||
| Microsoft.Extensions.Logging.Abstractions | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Logging.Abstractions.txt](Microsoft.Extensions.Logging.Abstractions.txt) |
|
||||
| Microsoft.Extensions.Logging.Configuration | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Logging.Configuration.txt](Microsoft.Extensions.Logging.Configuration.txt) |
|
||||
| Microsoft.Extensions.Logging.Console | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Logging.Console.txt](Microsoft.Extensions.Logging.Console.txt) |
|
||||
| Microsoft.Extensions.Logging.Debug | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Logging.Debug.txt](Microsoft.Extensions.Logging.Debug.txt) |
|
||||
| Microsoft.Extensions.Logging.EventLog | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Logging.EventLog.txt](Microsoft.Extensions.Logging.EventLog.txt) |
|
||||
| Microsoft.Extensions.Logging.EventSource | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Logging.EventSource.txt](Microsoft.Extensions.Logging.EventSource.txt) |
|
||||
| Microsoft.Extensions.Options | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Options.txt](Microsoft.Extensions.Options.txt) |
|
||||
| Microsoft.Extensions.Options.ConfigurationExtensions | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Options.ConfigurationExtensions.txt](Microsoft.Extensions.Options.ConfigurationExtensions.txt) |
|
||||
| Microsoft.Extensions.Primitives | 10.0.10 | MIT | Agent, App | [Microsoft.Extensions.Primitives.txt](Microsoft.Extensions.Primitives.txt) |
|
||||
| Mono.Posix.NETStandard | 1.0.0 | a URL only: https://go.microsoft.com/fwlink/?linkid=869050 | Agent, App | [Mono.Posix.NETStandard.txt](Mono.Posix.NETStandard.txt) |
|
||||
| OpenTK.Audio.OpenAL | 4.9.4 | MIT | App | [OpenTK.Audio.OpenAL.txt](OpenTK.Audio.OpenAL.txt) |
|
||||
| OpenTK.Compute | 4.9.4 | MIT | App | [OpenTK.Compute.txt](OpenTK.Compute.txt) |
|
||||
@@ -76,7 +76,7 @@ from the runtime packs the publish used.
|
||||
| SQLitePCLRaw.core | 3.0.5 | Apache-2.0 | Agent, App | [SQLitePCLRaw.core.txt](SQLitePCLRaw.core.txt) |
|
||||
| SQLitePCLRaw.provider.e_sqlite3 | 3.0.5 | Apache-2.0 | Agent, App | [SQLitePCLRaw.provider.e_sqlite3.txt](SQLitePCLRaw.provider.e_sqlite3.txt) |
|
||||
| System.CodeDom | 10.0.2 | MIT | Agent | [System.CodeDom.txt](System.CodeDom.txt) |
|
||||
| System.Diagnostics.EventLog | 10.0.12 | MIT | Agent | [System.Diagnostics.EventLog.txt](System.Diagnostics.EventLog.txt) |
|
||||
| System.Diagnostics.EventLog | 10.0.10 | MIT | Agent | [System.Diagnostics.EventLog.txt](System.Diagnostics.EventLog.txt) |
|
||||
| System.IO.FileSystem.AccessControl | 5.0.0 | MIT | Agent, App | [System.IO.FileSystem.AccessControl.txt](System.IO.FileSystem.AccessControl.txt) |
|
||||
| System.IO.Ports | 10.0.3 | MIT | Agent, App | [System.IO.Ports.txt](System.IO.Ports.txt) |
|
||||
| System.Management | 10.0.2 | MIT | Agent, App | [System.Management.txt](System.Management.txt) |
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Data.Sqlite.Core 10.0.12
|
||||
Microsoft.Data.Sqlite.Core 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Configuration.Abstractions 10.0.12
|
||||
Microsoft.Extensions.Configuration.Abstractions 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Configuration.Binder 10.0.12
|
||||
Microsoft.Extensions.Configuration.Binder 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Configuration.CommandLine 10.0.12
|
||||
Microsoft.Extensions.Configuration.CommandLine 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Configuration.EnvironmentVariables 10.0.12
|
||||
Microsoft.Extensions.Configuration.EnvironmentVariables 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Configuration.FileExtensions 10.0.12
|
||||
Microsoft.Extensions.Configuration.FileExtensions 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Configuration.Json 10.0.12
|
||||
Microsoft.Extensions.Configuration.Json 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Configuration.UserSecrets 10.0.12
|
||||
Microsoft.Extensions.Configuration.UserSecrets 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Configuration 10.0.12
|
||||
Microsoft.Extensions.Configuration 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.DependencyInjection.Abstractions 10.0.12
|
||||
Microsoft.Extensions.DependencyInjection.Abstractions 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.DependencyInjection 10.0.12
|
||||
Microsoft.Extensions.DependencyInjection 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Diagnostics.Abstractions 10.0.12
|
||||
Microsoft.Extensions.Diagnostics.Abstractions 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Diagnostics 10.0.12
|
||||
Microsoft.Extensions.Diagnostics 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.FileProviders.Abstractions 10.0.12
|
||||
Microsoft.Extensions.FileProviders.Abstractions 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.FileProviders.Physical 10.0.12
|
||||
Microsoft.Extensions.FileProviders.Physical 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.FileSystemGlobbing 10.0.12
|
||||
Microsoft.Extensions.FileSystemGlobbing 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Hosting.Abstractions 10.0.12
|
||||
Microsoft.Extensions.Hosting.Abstractions 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Hosting 10.0.12
|
||||
Microsoft.Extensions.Hosting 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Logging.Abstractions 10.0.12
|
||||
Microsoft.Extensions.Logging.Abstractions 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Logging.Configuration 10.0.12
|
||||
Microsoft.Extensions.Logging.Configuration 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Logging.Console 10.0.12
|
||||
Microsoft.Extensions.Logging.Console 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Logging.Debug 10.0.12
|
||||
Microsoft.Extensions.Logging.Debug 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Logging.EventLog 10.0.12
|
||||
Microsoft.Extensions.Logging.EventLog 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Logging.EventSource 10.0.12
|
||||
Microsoft.Extensions.Logging.EventSource 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Logging 10.0.12
|
||||
Microsoft.Extensions.Logging 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Options.ConfigurationExtensions 10.0.12
|
||||
Microsoft.Extensions.Options.ConfigurationExtensions 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Options 10.0.12
|
||||
Microsoft.Extensions.Options 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Microsoft.Extensions.Primitives 10.0.12
|
||||
Microsoft.Extensions.Primitives 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
System.Diagnostics.EventLog 10.0.12
|
||||
System.Diagnostics.EventLog 10.0.10
|
||||
|
||||
Licence declared: MIT
|
||||
Text below: the standard MIT text; the package ships no licence file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Third-party notices first found in Microsoft.Extensions.Configuration 10.0.12 THIRD-PARTY-NOTICES.TXT
|
||||
Third-party notices first found in Microsoft.Extensions.Configuration 10.0.10 THIRD-PARTY-NOTICES.TXT
|
||||
|
||||
.NET Runtime uses third-party libraries or other resources that may be
|
||||
distributed under licenses different than the .NET Runtime software.
|
||||
|
||||
@@ -117,8 +117,11 @@ public sealed class SessionSeriesLoader
|
||||
|
||||
private static string SegmentLabel(SegmentRow s)
|
||||
{
|
||||
// A segment carries no driver word: the driver's bookkeeping is per process, not per settings change.
|
||||
string upscaler = Services.Formats.Upscaler(s.Upscaler, s.UpscalerQuality, driverReported: null);
|
||||
string upscaler = Services.Formats.Upscaler(s.Upscaler);
|
||||
if (s.UpscalerQuality is { Length: > 0 } q)
|
||||
{
|
||||
upscaler += " " + q;
|
||||
}
|
||||
|
||||
string resolution = Services.Formats.Resolution(s.RenderW, s.RenderH, s.OutputW, s.OutputH);
|
||||
string fg = Services.Formats.FrameGeneration(s.FgMode);
|
||||
|
||||
@@ -10,33 +10,26 @@
|
||||
MinWidth="420">
|
||||
<!--
|
||||
FR-1.3: a detected field is badged (05_DETECTION §Caching), and saving marks what changed as the user's.
|
||||
A TagPill, not ui:Badge: Info's background is a fixed Material colour outside the theme dictionaries, and Secondary keeps the
|
||||
default badge's on-accent foreground over a near-white fill in the light theme (08_UI §Contrast, 2026-09-21).
|
||||
Secondary, not Info: Info's background is a fixed Material colour outside the theme dictionaries (08_UI §Contrast).
|
||||
-->
|
||||
<StackPanel>
|
||||
<DockPanel>
|
||||
<Border DockPanel.Dock="Right" Style="{StaticResource TagPill}"
|
||||
Visibility="{Binding NameDetected, Converter={StaticResource BoolToVis}}">
|
||||
<TextBlock Style="{StaticResource TagPillText}" Text="{x:Static vm:EditGameViewModel.DetectedBadge}" />
|
||||
</Border>
|
||||
<ui:Badge DockPanel.Dock="Right" Margin="8,0,0,0" Appearance="Secondary" Content="{x:Static vm:EditGameViewModel.DetectedBadge}"
|
||||
Visibility="{Binding NameDetected, Converter={StaticResource BoolToVis}}" />
|
||||
<ui:TextBlock Appearance="Secondary" Text="{x:Static vm:EditGameViewModel.NameLabel}" />
|
||||
</DockPanel>
|
||||
<ui:TextBox Margin="0,4,0,12" AutomationProperties.Name="{x:Static vm:EditGameViewModel.NameLabel}" Text="{Binding Name, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
<DockPanel>
|
||||
<Border DockPanel.Dock="Right" Style="{StaticResource TagPill}"
|
||||
Visibility="{Binding PublisherDetected, Converter={StaticResource BoolToVis}}">
|
||||
<TextBlock Style="{StaticResource TagPillText}" Text="{x:Static vm:EditGameViewModel.DetectedBadge}" />
|
||||
</Border>
|
||||
<ui:Badge DockPanel.Dock="Right" Margin="8,0,0,0" Appearance="Secondary" Content="{x:Static vm:EditGameViewModel.DetectedBadge}"
|
||||
Visibility="{Binding PublisherDetected, Converter={StaticResource BoolToVis}}" />
|
||||
<ui:TextBlock Appearance="Secondary" Text="{x:Static vm:EditGameViewModel.PublisherLabel}" />
|
||||
</DockPanel>
|
||||
<ui:TextBox Margin="0,4,0,12" AutomationProperties.Name="{x:Static vm:EditGameViewModel.PublisherLabel}" Text="{Binding Publisher, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
<DockPanel>
|
||||
<Border DockPanel.Dock="Right" Style="{StaticResource TagPill}"
|
||||
Visibility="{Binding VersionDetected, Converter={StaticResource BoolToVis}}">
|
||||
<TextBlock Style="{StaticResource TagPillText}" Text="{x:Static vm:EditGameViewModel.DetectedBadge}" />
|
||||
</Border>
|
||||
<ui:Badge DockPanel.Dock="Right" Margin="8,0,0,0" Appearance="Secondary" Content="{x:Static vm:EditGameViewModel.DetectedBadge}"
|
||||
Visibility="{Binding VersionDetected, Converter={StaticResource BoolToVis}}" />
|
||||
<ui:TextBlock Appearance="Secondary" Text="{x:Static vm:EditGameViewModel.VersionLabel}" />
|
||||
</DockPanel>
|
||||
<ui:TextBox Margin="0,4,0,12" AutomationProperties.Name="{x:Static vm:EditGameViewModel.VersionLabel}" Text="{Binding Version, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
<StackPanel Grid.Column="0">
|
||||
<ui:TextBlock FontTypography="Title" Text="{Binding ViewModel.Name}" />
|
||||
<ui:TextBlock Appearance="Secondary" Text="{Binding ViewModel.Subtitle}" />
|
||||
<ui:TextBlock Appearance="Tertiary" TextTrimming="CharacterEllipsis" Text="{Binding ViewModel.ExecutableText}" ToolTip="{Binding ViewModel.ExecutableText}" />
|
||||
<ui:TextBlock Appearance="Secondary" Text="{Binding ViewModel.LastSessionText}" />
|
||||
<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
||||
<ui:TextBlock Appearance="Secondary" VerticalAlignment="Center" Margin="0,0,12,0" Text="{x:Static vm:GameDetailViewModel.LifetimeLabel}" />
|
||||
@@ -50,7 +49,6 @@
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Top">
|
||||
<ui:Button Margin="0,0,8,0" Command="{Binding ViewModel.EditCommand}" Content="{x:Static vm:GameDetailViewModel.EditText}" Icon="{ui:SymbolIcon Edit24}" />
|
||||
<ui:Button Margin="0,0,8,0" Command="{Binding ViewModel.ChangeExecutableCommand}" Content="{x:Static vm:GameDetailViewModel.ChangeExecutableText}" Icon="{ui:SymbolIcon DocumentArrowRight24}" />
|
||||
<ui:Button Appearance="Danger" Command="{Binding ViewModel.RemoveCommand}" Content="{x:Static vm:GameDetailViewModel.RemoveText}" Icon="{ui:SymbolIcon Delete24}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
@@ -57,14 +57,10 @@
|
||||
<StackPanel>
|
||||
<ui:TextBlock FontTypography="BodyStrong" Text="{Binding Name}" TextTrimming="CharacterEllipsis" />
|
||||
<StackPanel Orientation="Horizontal" Margin="0,4,0,0">
|
||||
<Border Style="{StaticResource TagPill}" Margin="0,0,6,0"
|
||||
Visibility="{Binding HasPlatform, Converter={StaticResource BoolToVis}}">
|
||||
<TextBlock Style="{StaticResource TagPillText}" Text="{Binding PlatformText}" />
|
||||
</Border>
|
||||
<Border Style="{StaticResource TagPill}" Margin="0,0,6,0"
|
||||
Visibility="{Binding HasEngine, Converter={StaticResource BoolToVis}}">
|
||||
<TextBlock Style="{StaticResource TagPillText}" Text="{Binding EngineText}" />
|
||||
</Border>
|
||||
<ui:Badge Appearance="Secondary" Margin="0,0,6,0" Content="{Binding PlatformText}"
|
||||
Visibility="{Binding HasPlatform, Converter={StaticResource BoolToVis}}" />
|
||||
<ui:Badge Appearance="Secondary" Margin="0,0,6,0" Content="{Binding EngineText}"
|
||||
Visibility="{Binding HasEngine, Converter={StaticResource BoolToVis}}" />
|
||||
<Border Style="{StaticResource HookStatePill}">
|
||||
<TextBlock Style="{StaticResource HookStatePillText}" Text="{Binding HookText}" />
|
||||
</Border>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using FrameLedger.Domain.Metrics;
|
||||
using FrameLedger.Domain.Sessions;
|
||||
|
||||
namespace FrameLedger.App.Services;
|
||||
@@ -71,30 +70,6 @@ public static class Formats
|
||||
_ => Strings.Upscaler_Unknown,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// The upscaler as the UI states it, down <c>03_METRICS</c> §Upscaling's ladder: a name a HOOK produced outranks
|
||||
/// everything and takes its measured preset; where no hook named one (<c>unknown</c>: a hook ran and saw nothing —
|
||||
/// every NGX-direct DLSS title, since no NGX hook may exist — or no claim at all) and the NVIDIA driver reports the
|
||||
/// feature created and evaluated in the process, the name is the driver's and SAYS so; otherwise what the token
|
||||
/// says. The driver's word is identity only: it never takes a quality, even when a byte is on the row.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The row has stored <c>upscaler_driver_reported</c> since P2 and the capture host has printed it since 2026-09-06;
|
||||
/// the App never read it, which is why DLSS read "Unknown upscaler" on most titles while FSR, whose dispatch the
|
||||
/// hook does see, was named (owner's report, 2026-09-21).
|
||||
/// </remarks>
|
||||
public static string Upscaler(string? token, string? quality, string? driverReported)
|
||||
{
|
||||
bool hookNamed = token is { Length: > 0 } and not "unknown";
|
||||
if (!hookNamed && driverReported is { Length: > 0 })
|
||||
{
|
||||
return string.Format(CultureInfo.CurrentCulture, Strings.Upscaler_DriverReported_Format, Upscaler(driverReported));
|
||||
}
|
||||
|
||||
string name = Upscaler(token);
|
||||
return hookNamed && UpscalerNames.Quality(token, quality) is { } preset ? name + " " + preset : name;
|
||||
}
|
||||
|
||||
/// <summary>The row's fg_mode token as its product name.</summary>
|
||||
public static string FrameGeneration(string? token) => token switch
|
||||
{
|
||||
|
||||
@@ -64,23 +64,6 @@ public sealed class GameLibrary
|
||||
return await _games.EnsureAsync(fingerprint.Value, name, ct).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Points the row at another executable; null when the file cannot be read, false when another row owns that path.
|
||||
/// The caller revokes consent over the pipe FIRST, as removal does: the table write only downgrades.
|
||||
/// </summary>
|
||||
public async Task<bool?> ChangeExecutableAsync(long gameId, string exePath, CancellationToken ct = default)
|
||||
{
|
||||
ArgumentException.ThrowIfNullOrWhiteSpace(exePath);
|
||||
string normalised = ExecutableIdentity.Normalise(exePath);
|
||||
ExecutableFingerprint? fingerprint = ExecutableIdentity.Read(normalised);
|
||||
if (fingerprint is null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return await _games.ChangeExecutableAsync(gameId, fingerprint.Value, _clock.GetUtcNow(), ct).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
public Task<bool> RemoveAsync(long gameId, bool keepSessions, CancellationToken ct = default) => _games.RemoveAsync(gameId, keepSessions, ct).AsTask();
|
||||
|
||||
public Task<bool> UpdateMetadataAsync(long gameId, GameMetadata metadata, CancellationToken ct = default) => _games.UpdateMetadataAsync(gameId, metadata, ct).AsTask();
|
||||
|
||||
Generated
-15
@@ -62,9 +62,6 @@ public static class Strings
|
||||
nameof(BugReport_Preview_Drag),
|
||||
nameof(BugReport_Preview_Intro_Format),
|
||||
nameof(BugReport_Title),
|
||||
nameof(ChangeExe_Done_Format),
|
||||
nameof(ChangeExe_Taken_Format),
|
||||
nameof(ChangeExe_Unreadable_Format),
|
||||
nameof(Chart_Axis_Count),
|
||||
nameof(Chart_Axis_Fps),
|
||||
nameof(Chart_Axis_Frametime),
|
||||
@@ -242,7 +239,6 @@ public static class Strings
|
||||
nameof(Fps_None_Tooltip),
|
||||
nameof(Fps_Presented_Format),
|
||||
nameof(GameDetail_Back),
|
||||
nameof(GameDetail_ChangeExe),
|
||||
nameof(GameDetail_Edit),
|
||||
nameof(GameDetail_Hooking_Body),
|
||||
nameof(GameDetail_Hooking_Busy),
|
||||
@@ -594,7 +590,6 @@ public static class Strings
|
||||
nameof(Update_Toast_Title),
|
||||
nameof(Update_Unsigned_Footer),
|
||||
nameof(Update_UpToDate_Format),
|
||||
nameof(Upscaler_DriverReported_Format),
|
||||
nameof(Upscaler_None),
|
||||
nameof(Upscaler_Unknown),
|
||||
];
|
||||
@@ -671,12 +666,6 @@ public static class Strings
|
||||
|
||||
public static string BugReport_Title => ResourceManager.GetString(nameof(BugReport_Title), Culture) ?? nameof(BugReport_Title);
|
||||
|
||||
public static string ChangeExe_Done_Format => ResourceManager.GetString(nameof(ChangeExe_Done_Format), Culture) ?? nameof(ChangeExe_Done_Format);
|
||||
|
||||
public static string ChangeExe_Taken_Format => ResourceManager.GetString(nameof(ChangeExe_Taken_Format), Culture) ?? nameof(ChangeExe_Taken_Format);
|
||||
|
||||
public static string ChangeExe_Unreadable_Format => ResourceManager.GetString(nameof(ChangeExe_Unreadable_Format), Culture) ?? nameof(ChangeExe_Unreadable_Format);
|
||||
|
||||
public static string Chart_Axis_Count => ResourceManager.GetString(nameof(Chart_Axis_Count), Culture) ?? nameof(Chart_Axis_Count);
|
||||
|
||||
public static string Chart_Axis_Fps => ResourceManager.GetString(nameof(Chart_Axis_Fps), Culture) ?? nameof(Chart_Axis_Fps);
|
||||
@@ -1031,8 +1020,6 @@ public static class Strings
|
||||
|
||||
public static string GameDetail_Back => ResourceManager.GetString(nameof(GameDetail_Back), Culture) ?? nameof(GameDetail_Back);
|
||||
|
||||
public static string GameDetail_ChangeExe => ResourceManager.GetString(nameof(GameDetail_ChangeExe), Culture) ?? nameof(GameDetail_ChangeExe);
|
||||
|
||||
public static string GameDetail_Edit => ResourceManager.GetString(nameof(GameDetail_Edit), Culture) ?? nameof(GameDetail_Edit);
|
||||
|
||||
public static string GameDetail_Hooking_Body => ResourceManager.GetString(nameof(GameDetail_Hooking_Body), Culture) ?? nameof(GameDetail_Hooking_Body);
|
||||
@@ -1735,8 +1722,6 @@ public static class Strings
|
||||
|
||||
public static string Update_UpToDate_Format => ResourceManager.GetString(nameof(Update_UpToDate_Format), Culture) ?? nameof(Update_UpToDate_Format);
|
||||
|
||||
public static string Upscaler_DriverReported_Format => ResourceManager.GetString(nameof(Upscaler_DriverReported_Format), Culture) ?? nameof(Upscaler_DriverReported_Format);
|
||||
|
||||
public static string Upscaler_None => ResourceManager.GetString(nameof(Upscaler_None), Culture) ?? nameof(Upscaler_None);
|
||||
|
||||
public static string Upscaler_Unknown => ResourceManager.GetString(nameof(Upscaler_Unknown), Culture) ?? nameof(Upscaler_Unknown);
|
||||
|
||||
@@ -1006,7 +1006,7 @@
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Upscaler_Unknown" xml:space="preserve">
|
||||
<value>アップスケーラーを特定できません</value>
|
||||
<value>不明なアップスケーラー</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Chart_Axis_Count" xml:space="preserve">
|
||||
@@ -2292,24 +2292,4 @@
|
||||
ログフォルダーを開きますか?</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="GameDetail_ChangeExe" xml:space="preserve">
|
||||
<value>実行ファイルを変更…</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="ChangeExe_Done_Format" xml:space="preserve">
|
||||
<value>{0} は {1} を指すようになりました。再度有効にして同意ダイアログを承認するまで、フックはオフです。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="ChangeExe_Unreadable_Format" xml:space="preserve">
|
||||
<value>{0} を読み取れませんでした。実行ファイルは変更されていません。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="ChangeExe_Taken_Format" xml:space="preserve">
|
||||
<value>{0} はライブラリ内の別のゲーム(またはセッションを残して削除されたゲーム)に既に属しています。実行ファイルは変更されていません。</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
<data name="Upscaler_DriverReported_Format" xml:space="preserve">
|
||||
<value>{0}(ドライバー報告)</value>
|
||||
<comment>review</comment>
|
||||
</data>
|
||||
</root>
|
||||
@@ -760,7 +760,7 @@
|
||||
<value>No upscaler</value>
|
||||
</data>
|
||||
<data name="Upscaler_Unknown" xml:space="preserve">
|
||||
<value>Upscaler not identified</value>
|
||||
<value>Unknown upscaler</value>
|
||||
</data>
|
||||
<data name="Chart_Axis_Count" xml:space="preserve">
|
||||
<value>Frames</value>
|
||||
@@ -1728,19 +1728,4 @@ The details are in the log folder:
|
||||
|
||||
Open the log folder?</value>
|
||||
</data>
|
||||
<data name="GameDetail_ChangeExe" xml:space="preserve">
|
||||
<value>Change executable…</value>
|
||||
</data>
|
||||
<data name="ChangeExe_Done_Format" xml:space="preserve">
|
||||
<value>{0} now points at {1}. Hooking is off for it until you enable it again and accept the consent dialog.</value>
|
||||
</data>
|
||||
<data name="ChangeExe_Unreadable_Format" xml:space="preserve">
|
||||
<value>{0} could not be read; the executable was not changed.</value>
|
||||
</data>
|
||||
<data name="ChangeExe_Taken_Format" xml:space="preserve">
|
||||
<value>{0} already belongs to another game in the library (or to one removed with its sessions kept); the executable was not changed.</value>
|
||||
</data>
|
||||
<data name="Upscaler_DriverReported_Format" xml:space="preserve">
|
||||
<value>{0} (driver-reported)</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -755,7 +755,7 @@
|
||||
<value>Không upscaler</value>
|
||||
</data>
|
||||
<data name="Upscaler_Unknown" xml:space="preserve">
|
||||
<value>Không xác định được upscaler</value>
|
||||
<value>Upscaler không rõ</value>
|
||||
</data>
|
||||
<data name="Chart_Axis_Count" xml:space="preserve">
|
||||
<value>Khung hình</value>
|
||||
@@ -1723,19 +1723,4 @@ Chi tiết nằm trong thư mục log:
|
||||
|
||||
Mở thư mục log?</value>
|
||||
</data>
|
||||
<data name="GameDetail_ChangeExe" xml:space="preserve">
|
||||
<value>Đổi file thực thi…</value>
|
||||
</data>
|
||||
<data name="ChangeExe_Done_Format" xml:space="preserve">
|
||||
<value>{0} giờ trỏ tới {1}. Hooking đang tắt cho tới khi bạn bật lại và chấp nhận hộp thoại đồng ý.</value>
|
||||
</data>
|
||||
<data name="ChangeExe_Unreadable_Format" xml:space="preserve">
|
||||
<value>Không đọc được {0}; file thực thi không thay đổi.</value>
|
||||
</data>
|
||||
<data name="ChangeExe_Taken_Format" xml:space="preserve">
|
||||
<value>{0} đã thuộc về một game khác trong thư viện (hoặc một game đã xoá nhưng giữ phiên); file thực thi không thay đổi.</value>
|
||||
</data>
|
||||
<data name="Upscaler_DriverReported_Format" xml:space="preserve">
|
||||
<value>{0} (driver báo cáo)</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -40,22 +40,6 @@
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
</Style>
|
||||
|
||||
<!--
|
||||
A neutral tag: the Games card's platform and engine, the edit dialog's "detected" marker. It WAS
|
||||
`ui:Badge Appearance="Secondary"` until 2026-09-21. WPF UI 4.3.0's Secondary trigger repaints only the badge's
|
||||
background (ControlFillColorDefault) and leaves Foreground at BadgeForeground, the on-accent colour of the DEFAULT
|
||||
badge: in the light theme that is near-white text on a near-white fill, and the owner's screenshot showed two empty
|
||||
white boxes beside a readable hooking pill. The hooking pill was readable because it sets its own foreground; so
|
||||
does this. ContrastTests measures the pair in both themes and refuses Secondary badges in App XAML.
|
||||
-->
|
||||
<Style x:Key="TagPill" TargetType="Border" BasedOn="{StaticResource Pill}">
|
||||
<Setter Property="Margin" Value="8,0,0,0" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="TagPillText" TargetType="TextBlock">
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextFillColorSecondaryBrush}" />
|
||||
</Style>
|
||||
|
||||
<!--
|
||||
The Games card's hooking state (08_UI §Games). Two states, both from the theme dictionaries: ON is the accent
|
||||
pair the ×FG chip uses, OFF is the Pill's own muted fill with secondary text. It WAS `ui:Badge Appearance="Info"`
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Text.Json;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
@@ -11,7 +10,6 @@ using FrameLedger.App.Services;
|
||||
using FrameLedger.Application.Persistence;
|
||||
using FrameLedger.Application.TriState;
|
||||
using FrameLedger.Domain.Sessions;
|
||||
using FrameLedger.Infrastructure.Io;
|
||||
using Wpf.Ui.Controls;
|
||||
|
||||
namespace FrameLedger.App.ViewModels;
|
||||
@@ -29,7 +27,6 @@ public sealed partial class GameDetailViewModel : ObservableObject
|
||||
private readonly IPageNavigator _navigator;
|
||||
private readonly IConfirmations _confirmations;
|
||||
private readonly IEditGamePrompt _edit;
|
||||
private readonly IGamePicker _picker;
|
||||
private readonly IMessageStrip _strip;
|
||||
private readonly ISessionSummaryOpener _summaries;
|
||||
private readonly SessionSeriesLoader _loader;
|
||||
@@ -44,10 +41,6 @@ public sealed partial class GameDetailViewModel : ObservableObject
|
||||
[ObservableProperty]
|
||||
private string _subtitle = string.Empty;
|
||||
|
||||
/// <summary>The executable the row is about: what the watcher matches and what consent is keyed on, so a wrong import guess is visible.</summary>
|
||||
[ObservableProperty]
|
||||
private string _executableText = string.Empty;
|
||||
|
||||
[ObservableProperty]
|
||||
private string _lastSessionText = string.Empty;
|
||||
|
||||
@@ -122,9 +115,8 @@ public sealed partial class GameDetailViewModel : ObservableObject
|
||||
|
||||
public GameDetailViewModel(GameLibrary library, GameSelection selection, HookingConsent consent, IPageNavigator navigator,
|
||||
IConfirmations confirmations, IEditGamePrompt edit, IMessageStrip strip, ISessionSummaryOpener summaries,
|
||||
SessionSeriesLoader loader, IHardwareSnapshotRepository hardware, SessionSelection sessionSelection, IGamePicker picker)
|
||||
SessionSeriesLoader loader, IHardwareSnapshotRepository hardware, SessionSelection sessionSelection)
|
||||
{
|
||||
_picker = picker ?? throw new ArgumentNullException(nameof(picker));
|
||||
_selection = sessionSelection ?? throw new ArgumentNullException(nameof(sessionSelection));
|
||||
_library = library ?? throw new ArgumentNullException(nameof(library));
|
||||
ArgumentNullException.ThrowIfNull(selection);
|
||||
@@ -146,8 +138,6 @@ public sealed partial class GameDetailViewModel : ObservableObject
|
||||
|
||||
public static string RemoveText => Strings.GameDetail_Remove;
|
||||
|
||||
public static string ChangeExecutableText => Strings.GameDetail_ChangeExe;
|
||||
|
||||
public static string LifetimeLabel => Strings.GameDetail_LifetimeAvg;
|
||||
|
||||
public static string SupportsHeader => Strings.GameDetail_Supports_Header;
|
||||
@@ -345,9 +335,6 @@ public sealed partial class GameDetailViewModel : ObservableObject
|
||||
[RelayCommand]
|
||||
private Task RemoveAsync() => RunAsync(RemoveCoreAsync);
|
||||
|
||||
[RelayCommand]
|
||||
private Task ChangeExecutableAsync() => RunAsync(ChangeExecutableCoreAsync);
|
||||
|
||||
/// <summary>One action at a time, and the one in flight is <see cref="Pending"/> for a test to await.</summary>
|
||||
private async Task RunAsync(Func<Task> work)
|
||||
{
|
||||
@@ -416,47 +403,6 @@ public sealed partial class GameDetailViewModel : ObservableObject
|
||||
await LoadAsync().ConfigureAwait(true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A store import guesses the executable (Steam names none), and everything downstream is keyed on it: a wrong guess
|
||||
/// is a game that can never be matched. The pick is the user's own; the row comes back hooking-off and unconsented,
|
||||
/// exactly as a new game would, and consent is revoked over the pipe first, as removal does.
|
||||
/// </summary>
|
||||
private async Task ChangeExecutableCoreAsync()
|
||||
{
|
||||
if (Game is null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
string? path = _picker.PickExecutable();
|
||||
if (path is null || string.Equals(ExecutableIdentity.Normalise(path), Game.Fingerprint.ExePath, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (Game.HookEnabled)
|
||||
{
|
||||
await _consent.DisableAsync(Game.Id).ConfigureAwait(true);
|
||||
}
|
||||
|
||||
bool? changed = await _library.ChangeExecutableAsync(Game.Id, path).ConfigureAwait(true);
|
||||
string file = Path.GetFileName(path);
|
||||
switch (changed)
|
||||
{
|
||||
case null:
|
||||
_strip.Warn(Strings.GameDetail_ChangeExe, string.Format(CultureInfo.CurrentCulture, Strings.ChangeExe_Unreadable_Format, file));
|
||||
break;
|
||||
case false:
|
||||
_strip.Warn(Strings.GameDetail_ChangeExe, string.Format(CultureInfo.CurrentCulture, Strings.ChangeExe_Taken_Format, file));
|
||||
break;
|
||||
default:
|
||||
_strip.Success(Strings.GameDetail_ChangeExe, string.Format(CultureInfo.CurrentCulture, Strings.ChangeExe_Done_Format, Game.Name, file));
|
||||
break;
|
||||
}
|
||||
|
||||
await LoadAsync().ConfigureAwait(true);
|
||||
}
|
||||
|
||||
private async Task RemoveCoreAsync()
|
||||
{
|
||||
if (Game is null)
|
||||
@@ -501,7 +447,6 @@ public sealed partial class GameDetailViewModel : ObservableObject
|
||||
GameRow row = detail.Row;
|
||||
Name = row.Name;
|
||||
Subtitle = string.Join(" · ", new[] { row.Publisher, row.GameVersion, Formats.Platform(row.Platform), EngineText(row) }.Where(static s => !string.IsNullOrWhiteSpace(s)));
|
||||
ExecutableText = row.Fingerprint.ExePath;
|
||||
|
||||
SessionRow? last = detail.Sessions.Count > 0 ? detail.Sessions[0] : null;
|
||||
SessionRow? lastHooked = detail.Sessions.FirstOrDefault(static s => s.Tier == CaptureTier.Hooked && s.FrameCount > 0);
|
||||
@@ -548,7 +493,12 @@ public sealed partial class GameDetailViewModel : ObservableObject
|
||||
}
|
||||
|
||||
MeasuredEmptyText = string.Empty;
|
||||
string upscaler = Formats.Upscaler(lastHooked.Upscaler, lastHooked.UpscalerQuality, lastHooked.UpscalerDriverReported);
|
||||
string upscaler = Formats.Upscaler(lastHooked.Upscaler);
|
||||
if (lastHooked.UpscalerQuality is { Length: > 0 } quality)
|
||||
{
|
||||
upscaler += " " + quality;
|
||||
}
|
||||
|
||||
Measured.Add(upscaler + " · " + Formats.Resolution(lastHooked.RenderW, lastHooked.RenderH, lastHooked.OutputW, lastHooked.OutputH));
|
||||
Measured.Add(FpsPresentation.FrameGenerationLabel(FpsPresentation.FromRow(lastHooked), lastHooked.FgMode));
|
||||
foreach (TriStateChipModel chip in Chips.Where(static c => !c.IsNotApplicable))
|
||||
|
||||
@@ -91,7 +91,7 @@ public sealed partial class LiveCaptureViewModel : ObservableObject
|
||||
ElapsedText = string.Format(CultureInfo.CurrentCulture, Strings.Dashboard_Live_Elapsed_Format, Formats.Duration(progress.ElapsedS));
|
||||
Readout = FpsPresentation.FromProgress(progress);
|
||||
ResolutionText = Formats.Resolution(progress.RenderW, progress.RenderH, progress.OutputW, progress.OutputH);
|
||||
UpscalerText = Formats.Upscaler(progress.Upscaler, progress.UpscalerQuality, progress.UpscalerDriverReported);
|
||||
UpscalerText = progress.UpscalerQuality is { Length: > 0 } q ? Formats.Upscaler(progress.Upscaler) + " " + q : Formats.Upscaler(progress.Upscaler);
|
||||
FgText = FpsPresentation.FrameGenerationLabel(Readout, progress.FgMode);
|
||||
RtActive = progress.RtActive == true;
|
||||
GpuTempText = progress.GpuTempC is double g ? string.Format(CultureInfo.CurrentCulture, Strings.Dashboard_Live_GpuTemp_Format, Math.Round(g)) : string.Empty;
|
||||
|
||||
@@ -29,7 +29,7 @@ public sealed class SessionItemViewModel
|
||||
FpsTooltip = FpsPresentation.ColumnTooltip(row);
|
||||
P1LowText = IsHooked ? Formats.Fps(row.P1LowFps) : Strings.Common_NotAvailable;
|
||||
P01LowText = IsHooked ? Formats.Fps(row.P01LowFps) : Strings.Common_NotAvailable;
|
||||
ResolutionText = IsHooked ? Formats.Resolution(row.RenderW, row.RenderH, row.OutputW, row.OutputH) + " · " + Formats.Upscaler(row.Upscaler, row.UpscalerQuality, row.UpscalerDriverReported) : Strings.Common_NotAvailable;
|
||||
ResolutionText = IsHooked ? Formats.Resolution(row.RenderW, row.RenderH, row.OutputW, row.OutputH) + " · " + Formats.Upscaler(row.Upscaler) : Strings.Common_NotAvailable;
|
||||
GpuTempText = Formats.Temperature(row.MaxGpuTemp);
|
||||
ApiText = IsHooked ? Formats.Api(row.Api) : Strings.Common_NotAvailable;
|
||||
ExitText = Formats.ExitStatusText(row.ExitStatus);
|
||||
|
||||
@@ -277,7 +277,7 @@ public sealed partial class SessionSummaryViewModel : ObservableObject
|
||||
Readout = FpsPresentation.FromRow(row);
|
||||
Line = string.Format(CultureInfo.CurrentCulture, Strings.Summary_Line_Format,
|
||||
IsHooked ? Formats.Api(row.Api) : Strings.Tier_NotHooked, row.PresentMode ?? Strings.Common_NotAvailable,
|
||||
IsHooked ? Formats.Upscaler(row.Upscaler, row.UpscalerQuality, row.UpscalerDriverReported) : Strings.Common_NotAvailable, Formats.Resolution(row.RenderW, row.RenderH, row.OutputW, row.OutputH));
|
||||
IsHooked ? Formats.Upscaler(row.Upscaler) : Strings.Common_NotAvailable, Formats.Resolution(row.RenderW, row.RenderH, row.OutputW, row.OutputH));
|
||||
Tags = _annotation is null ? string.Empty : string.Join(", ", _annotation.Tags);
|
||||
Notes = _annotation?.Notes ?? string.Empty;
|
||||
HasDisplayed = Series?.HasGenerated == true;
|
||||
|
||||
@@ -61,7 +61,6 @@ public static class SessionProgressCalculator
|
||||
FgRuntimeCensus = progress.WriterState.RuntimeCensus,
|
||||
Upscaler = upscaler is { } u ? Vocabulary.Upscaler(u) : FgLadder.UpscalerHookRan(progress.Records) ? "unknown" : null,
|
||||
UpscalerQuality = Modal([.. withParams.Where(static s => s.UpscalerQuality != FrameSample.QualityNotTold)])?.ToString(CultureInfo.InvariantCulture),
|
||||
UpscalerDriverReported = progress.NgxDriver.SrCreatedAndEvaluated ? "dlss" : null,
|
||||
RenderW = extent?.RenderW,
|
||||
RenderH = extent?.RenderH,
|
||||
OutputW = extent?.OutputW,
|
||||
|
||||
@@ -24,16 +24,6 @@ public interface IGameRepository
|
||||
|
||||
ValueTask<bool> AutoDisableHookAsync(long gameId, string reason, DateTimeOffset at, CancellationToken ct = default);
|
||||
|
||||
/// <summary>
|
||||
/// Points a library row at another executable (2026-09-21): the remedy for a store import that guessed the wrong one,
|
||||
/// which used to be "remove the game and add it again". Everything downstream is keyed on the executable, so the row
|
||||
/// comes out exactly as a new game would: hooking OFF, no consent, the pre-scan not run. It can only downgrade — it
|
||||
/// never enables anything and it leaves <c>hook_blocked_reason</c> alone, because nothing clears a block. False when
|
||||
/// the row is absent or removed, or when another row (in the library or kept for its sessions) already owns that
|
||||
/// path: two rows for one executable is what <c>exe_path UNIQUE</c> exists to refuse.
|
||||
/// </summary>
|
||||
ValueTask<bool> ChangeExecutableAsync(long gameId, ExecutableFingerprint fingerprint, DateTimeOffset at, CancellationToken ct = default);
|
||||
|
||||
ValueTask<int> RecordCrashAsync(long gameId, CancellationToken ct = default);
|
||||
|
||||
ValueTask<bool> RecordInjectionAsync(long gameId, DateTimeOffset at, CancellationToken ct = default);
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
namespace FrameLedger.Domain.Metrics;
|
||||
|
||||
/// <summary>
|
||||
/// The vendor's own quality value as the name the vendor's menu uses (<c>03_METRICS</c> §Upscaling promised this type
|
||||
/// from the start; until 2026-09-21 the UI printed the raw integer beside the upscaler).
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// <b>One producer exists, so one table exists.</b> The only writer of <c>upscalerQuality</c> is the Streamline route:
|
||||
/// <c>sl::DLSSMode</c> as the title chained it into <c>slEvaluateFeature</c> (<c>fl_sl_inputs.h</c>
|
||||
/// <c>QualityFromMode</c>), where <c>eOff</c> and anything at or past <c>eCount</c> are already folded to "not told" and
|
||||
/// never reach a row. The ffx-api dispatch carries no quality mode, and XeSS has no hook, so their bytes are always
|
||||
/// "not told" and no table for them would have a row to name.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// A value this table does not know is returned as it is stored: a number nobody can name is still what was measured,
|
||||
/// and dropping it would turn a newer SDK's preset into "nothing was told".
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// This is the MEASURED byte. A label derived from the render/output ratio is a different thing and an owner decision
|
||||
/// not taken (<c>HANDOFF</c> §7a); nothing here infers.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static class UpscalerNames
|
||||
{
|
||||
/// <summary>
|
||||
/// The preset's name, the stored value when it has none, or null when the row stores no quality at all.
|
||||
/// </summary>
|
||||
/// <param name="upscaler">The row's upscaler token (<c>dlss</c>, <c>fsr3</c>, …).</param>
|
||||
/// <param name="quality">The row's quality value: the vendor's integer, invariant.</param>
|
||||
public static string? Quality(string? upscaler, string? quality)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(quality))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!string.Equals(upscaler, "dlss", StringComparison.Ordinal))
|
||||
{
|
||||
return quality;
|
||||
}
|
||||
|
||||
return quality switch
|
||||
{
|
||||
"1" => "Performance",
|
||||
"2" => "Balanced",
|
||||
"3" => "Quality",
|
||||
"4" => "Ultra Performance",
|
||||
"5" => "Ultra Quality",
|
||||
"6" => "DLAA",
|
||||
_ => quality,
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -4,68 +4,22 @@ namespace FrameLedger.Infrastructure.Import;
|
||||
|
||||
/// <summary>
|
||||
/// <see cref="IExecutableLocator"/> for the stores that do not name the game's executable (Steam, itch): walk the
|
||||
/// install directory four levels deep, drop the helpers a game ships beside itself (crash handlers, installers,
|
||||
/// redistributables, anti-cheat services, embedded browsers, launchers' own updaters) and everything under an engine's
|
||||
/// plugin folder, then RANK what is left: an executable the engine's own layout names as the game beats any other, and
|
||||
/// size decides only between equals. A guess the review list shows; the user unticks what is wrong, and the game's edit
|
||||
/// dialog can point the row at another executable afterwards. Never launched, never read past its size.
|
||||
/// install directory three levels deep, drop the helpers a game ships beside itself (crash handlers, installers,
|
||||
/// redistributables, anti-cheat services, launchers' own updaters), and take the largest of what is left — a
|
||||
/// shipping Unreal or Unity binary dwarfs its neighbours. A guess the review list shows; the user unticks what is
|
||||
/// wrong. Never launched, never read past its size.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// <b>It was "the largest non-helper wins" until 2026-09-21, and that was measured wrong on a real title.</b> GIRLS'
|
||||
/// FRONTLINE 2: EXILIUM (Steam 3347400, Unity) ships <c>GF2_Exilium.exe</c> at 675,392 bytes — a Unity player stub is
|
||||
/// small, the game is <c>UnityPlayer.dll</c> and <c>GameAssembly.dll</c> — and an embedded-browser helper,
|
||||
/// <c>GF2_Exilium_Data\Plugins\ZFGameBrowser.exe</c>, at 1,082,944. The helper won, the row was created for it, and
|
||||
/// because the watcher, consent and the gate are all keyed on the executable path, enabling hooking on that row could
|
||||
/// never match the game. The same ledger held Rune Factory: Guardians of Azuma twice, as the root <c>Game.exe</c>
|
||||
/// bootstrapper and as <c>Game-Win64-Shipping.exe</c>.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// The two layout rules are the engines' own conventions, not guesses about names: a Unity player is <c>X.exe</c>
|
||||
/// beside a directory <c>X_Data</c>, and an Unreal packaged build's game process is <c>*-Win64-Shipping.exe</c> (the
|
||||
/// root executable of the same name is a bootstrapper that starts it and exits).
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public sealed class ExecutableLocator : IExecutableLocator
|
||||
{
|
||||
/// <summary>
|
||||
/// Four since 2026-09-21: Dying Light: The Beast keeps its game at <c>ph_ft/work/bin/x64</c>, one level past the three
|
||||
/// this walked, and the import offered no executable for it at all.
|
||||
/// </summary>
|
||||
public const int MaxDepth = 4;
|
||||
|
||||
private const int _rankEngineLayout = 2;
|
||||
private const int _rankNamedAfterTheInstall = 1;
|
||||
private const int _minimumNameLength = 4;
|
||||
public const int MaxDepth = 3;
|
||||
|
||||
/// <summary>Name fragments of the helpers a game ships beside itself; a file whose name carries one is never the game.</summary>
|
||||
public static readonly IReadOnlyList<string> HelperFragments =
|
||||
[
|
||||
"crash", "handler", "unins", "setup", "install", "redist", "vc_redist", "dxsetup", "dotnet", "cef", "report", "updater",
|
||||
"launcher_helper", "easyanticheat", "beservice", "battleye", "steamerrorreporter", "ue4prereq", "uecc", "vcredist", "python", "node",
|
||||
"browser", "webview", "subprocess", "analyzer", "vconsole",
|
||||
];
|
||||
|
||||
/// <summary>
|
||||
/// Folder-name fragments of what a store install carries beside the game: a folder whose name holds one is not walked.
|
||||
/// Red Dead Redemption 2's <c>Redistributables\Rockstar-Games-Launcher.exe</c> is 140 MB to <c>RDR2.exe</c>'s 90.
|
||||
/// </summary>
|
||||
public static readonly IReadOnlyList<string> SkippedFolderFragments = ["redist", "prereq", "directx", "installer"];
|
||||
|
||||
public static bool IsSkippedFolder(string folderName)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(folderName);
|
||||
foreach (string fragment in SkippedFolderFragments)
|
||||
{
|
||||
if (folderName.Contains(fragment, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool IsHelper(string fileNameWithoutExtension)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(fileNameWithoutExtension);
|
||||
@@ -80,29 +34,6 @@ public sealed class ExecutableLocator : IExecutableLocator
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// True for a path inside an engine's plugin folder — Unity's <c>X_Data\Plugins</c>, where native helpers such as an
|
||||
/// embedded browser live. Nothing there is the game, whatever its size.
|
||||
/// </summary>
|
||||
public static bool IsUnderPluginFolder(string installDirectory, string executable)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(installDirectory);
|
||||
ArgumentNullException.ThrowIfNull(executable);
|
||||
string relative = Path.GetRelativePath(installDirectory, executable);
|
||||
string[] parts = relative.Split([Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar], StringSplitOptions.RemoveEmptyEntries);
|
||||
|
||||
// The last part is the file; a "<X>_Data", "Plugins" pair anywhere before it is the folder.
|
||||
for (int i = 0; i + 2 < parts.Length; i++)
|
||||
{
|
||||
if (parts[i].EndsWith("_Data", StringComparison.OrdinalIgnoreCase) && string.Equals(parts[i + 1], "Plugins", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public string? PickPrimary(string installDirectory)
|
||||
{
|
||||
ArgumentException.ThrowIfNullOrWhiteSpace(installDirectory);
|
||||
@@ -111,14 +42,11 @@ public sealed class ExecutableLocator : IExecutableLocator
|
||||
return null;
|
||||
}
|
||||
|
||||
string installName = Squash(Path.GetFileName(Path.TrimEndingDirectorySeparator(installDirectory)));
|
||||
string? best = null;
|
||||
int bestRank = -1;
|
||||
long bestSize = -1;
|
||||
foreach (string exe in Walk(installDirectory, 0))
|
||||
{
|
||||
string name = Path.GetFileNameWithoutExtension(exe);
|
||||
if (IsHelper(name) || IsUnderPluginFolder(installDirectory, exe))
|
||||
if (IsHelper(Path.GetFileNameWithoutExtension(exe)))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -133,11 +61,9 @@ public sealed class ExecutableLocator : IExecutableLocator
|
||||
continue;
|
||||
}
|
||||
|
||||
int rank = Rank(exe, name, installName);
|
||||
if (rank > bestRank || (rank == bestRank && size > bestSize))
|
||||
if (size > bestSize)
|
||||
{
|
||||
best = exe;
|
||||
bestRank = rank;
|
||||
bestSize = size;
|
||||
}
|
||||
}
|
||||
@@ -145,29 +71,6 @@ public sealed class ExecutableLocator : IExecutableLocator
|
||||
return best;
|
||||
}
|
||||
|
||||
private static int Rank(string exe, string name, string installName)
|
||||
{
|
||||
string? dir = Path.GetDirectoryName(exe);
|
||||
if (dir is not null && Directory.Exists(Path.Combine(dir, name + "_Data")))
|
||||
{
|
||||
return _rankEngineLayout; // Unity: X.exe beside X_Data
|
||||
}
|
||||
|
||||
if (name.EndsWith("-Win64-Shipping", StringComparison.OrdinalIgnoreCase) || name.EndsWith("-WinGDK-Shipping", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return _rankEngineLayout; // Unreal: the packaged game process, not the root bootstrapper
|
||||
}
|
||||
|
||||
string squashed = Squash(name);
|
||||
bool named = squashed.Length >= _minimumNameLength && installName.Length >= _minimumNameLength
|
||||
&& (installName.Contains(squashed, StringComparison.Ordinal) || squashed.Contains(installName, StringComparison.Ordinal));
|
||||
return named ? _rankNamedAfterTheInstall : 0;
|
||||
}
|
||||
|
||||
/// <summary>Letters and digits, lower-cased: "Cyberpunk 2077" and "Cyberpunk2077" are the same name.</summary>
|
||||
private static string Squash(string value) =>
|
||||
string.Concat(value.Where(char.IsLetterOrDigit).Select(char.ToLowerInvariant));
|
||||
|
||||
private static IEnumerable<string> Walk(string dir, int depth)
|
||||
{
|
||||
IEnumerable<string> files;
|
||||
@@ -189,11 +92,6 @@ public sealed class ExecutableLocator : IExecutableLocator
|
||||
|
||||
foreach (string d in dirs)
|
||||
{
|
||||
if (IsSkippedFolder(Path.GetFileName(d)))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach (string f in Walk(d, depth + 1))
|
||||
{
|
||||
yield return f;
|
||||
|
||||
@@ -40,14 +40,6 @@ public sealed class SqliteGameRepository : IGameRepository
|
||||
private const string _autoDisable =
|
||||
"UPDATE games SET hook_enabled = 0, hook_autodisabled_reason = @reason, hook_autodisabled_at = @at, updated_at = @at WHERE id = @id";
|
||||
|
||||
// A downgrade by construction: the consent columns go to their "nothing happened" defaults, never to a grant, and
|
||||
// hook_blocked_reason is not named (IGameRepository.ChangeExecutableAsync). NOT EXISTS is the UNIQUE index's answer
|
||||
// as a false instead of a constraint exception.
|
||||
private const string _changeExecutable =
|
||||
"UPDATE games SET exe_path = @path, exe_size_bytes = @size, exe_mtime_ms = @mtime, hook_enabled = 0, hook_consent_at = NULL, "
|
||||
+ "hook_consent_provenance = 'NotRecorded', hook_consent_disclosure_version = '', hook_prescan_state = 'not_run', updated_at = @at "
|
||||
+ "WHERE id = @id AND removed_at IS NULL AND NOT EXISTS (SELECT 1 FROM games other WHERE other.exe_path = @path AND other.id <> @id)";
|
||||
|
||||
private const string _crash =
|
||||
"UPDATE games SET hook_crash_count = hook_crash_count + 1, updated_at = @now WHERE id = @id RETURNING hook_crash_count";
|
||||
|
||||
@@ -121,14 +113,6 @@ public sealed class SqliteGameRepository : IGameRepository
|
||||
_autoDisable, new { id = gameId, reason, at = at.ToUnixTimeMilliseconds() }, tx, cancellationToken: token)).ConfigureAwait(false) == 1, ct);
|
||||
}
|
||||
|
||||
public ValueTask<bool> ChangeExecutableAsync(long gameId, ExecutableFingerprint fingerprint, DateTimeOffset at, CancellationToken ct = default)
|
||||
{
|
||||
ArgumentException.ThrowIfNullOrWhiteSpace(fingerprint.ExePath, nameof(fingerprint));
|
||||
var p = new { id = gameId, path = fingerprint.ExePath, size = fingerprint.SizeBytes, mtime = fingerprint.MtimeUnixMs, at = at.ToUnixTimeMilliseconds() };
|
||||
return _db.WriteAsync(async (c, tx, token) => await c.ExecuteAsync(new CommandDefinition(
|
||||
_changeExecutable, p, tx, cancellationToken: token)).ConfigureAwait(false) == 1, ct);
|
||||
}
|
||||
|
||||
public ValueTask<int> RecordCrashAsync(long gameId, CancellationToken ct = default) =>
|
||||
_db.WriteAsync((c, tx, token) => c.ExecuteScalarAsync<int>(new CommandDefinition(
|
||||
_crash, new { id = gameId, now = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() }, tx, cancellationToken: token)), ct);
|
||||
|
||||
@@ -184,13 +184,6 @@ public sealed record SessionProgressEvent
|
||||
/// <summary>The vendor's own preset value, as the row stores it; null when no record carried params.</summary>
|
||||
public string? UpscalerQuality { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// <c>dlss</c> when the NVIDIA driver reports an NGX super-resolution feature created and evaluated in the target
|
||||
/// (<c>03_METRICS</c> §The driver-reported rung), else null. The row has carried it since P2; the live card did not
|
||||
/// until 2026-09-21, so an NGX-direct title read "Unknown upscaler" for the whole session. Identity only.
|
||||
/// </summary>
|
||||
public string? UpscalerDriverReported { get; init; }
|
||||
|
||||
public int? RenderW { get; init; }
|
||||
|
||||
public int? RenderH { get; init; }
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" />
|
||||
<PackageReference Include="xunit.v3.mtp-off" />
|
||||
<PackageReference Include="xunit.v3" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" />
|
||||
<PackageReference Include="FluentAssertions" />
|
||||
<PackageReference Include="coverlet.collector" />
|
||||
|
||||
@@ -8,7 +8,6 @@ using FrameLedger.Application.Persistence;
|
||||
namespace FrameLedger.App.Tests;
|
||||
|
||||
/// <summary>Compare over a scratch ledger: the picker's bounds, FR-6.2's guard gating a mixed selection, the curves for hooked sessions only, the table's best-value rule and its N/A cells.</summary>
|
||||
[Collection(StringsCultureCollection.Name)]
|
||||
public sealed class CompareViewModelTests
|
||||
{
|
||||
private sealed class ScriptedMixed(bool answer) : IMixedTierPrompt
|
||||
|
||||
@@ -48,31 +48,6 @@ public sealed class ContrastTests
|
||||
offenders.Should().BeEmpty("Info/Caution/Danger/Success paint with Palette*Brush, a fixed Material colour outside the theme dictionaries (08_UI §Contrast)");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <c>Appearance="Secondary"</c> is refused too (2026-09-21). WPF UI 4.3.0's Secondary trigger repaints the badge's
|
||||
/// background only; Foreground stays <c>BadgeForeground</c>, the DEFAULT badge's on-accent colour, which over
|
||||
/// <c>ControlFillColorDefault</c> in the light theme is near-white on near-white: the Games card showed two empty boxes
|
||||
/// where the platform and the engine were. A literal attribute is what this can see; the Agent pill's bound
|
||||
/// appearance is <c>MainWindowViewModel</c>'s, and it never binds Secondary.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void NoBadgeUsesTheSecondaryAppearance()
|
||||
{
|
||||
List<string> offenders = [];
|
||||
foreach ((string file, XDocument xaml) in AccessibilityTests.AppXaml())
|
||||
{
|
||||
foreach (XElement badge in xaml.Descendants().Where(static e => string.Equals(e.Name.LocalName, "Badge", StringComparison.Ordinal)))
|
||||
{
|
||||
if (string.Equals(badge.Attribute("Appearance")?.Value, "Secondary", StringComparison.Ordinal))
|
||||
{
|
||||
offenders.Add($"{file}: ui:Badge Appearance=\"Secondary\"");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
offenders.Should().BeEmpty("a Secondary badge keeps the default badge's foreground over a fill it was not chosen for; use Styles/FrameLedger.xaml's TagPill + TagPillText");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The pairs the App's own styles compose (<c>Styles/FrameLedger.xaml</c>): the hooking pill OFF (secondary text on the
|
||||
/// Pill's fill), ON (on-accent text on the accent fill, the ×FG chip's pair), and the warning qualifier (primary text
|
||||
|
||||
@@ -6,7 +6,6 @@ using FrameLedger.Domain.Sessions;
|
||||
namespace FrameLedger.App.Tests;
|
||||
|
||||
/// <summary>The page numbers as text, in English: durations, playtime, resolutions, the token → product-name maps, and N/A where a value is missing.</summary>
|
||||
[Collection(StringsCultureCollection.Name)]
|
||||
public sealed class FormatsTests
|
||||
{
|
||||
private static T InEnglish<T>(Func<T> f)
|
||||
@@ -36,26 +35,6 @@ public sealed class FormatsTests
|
||||
InEnglish(() => Formats.Duration(-3)).Should().Be("0m 00s");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 03_METRICS §Upscaling's ladder as the UI states it (2026-09-21): a hook's name outranks the driver's, the driver's
|
||||
/// name says it is the driver's and never takes a quality, and a DLSS quality byte is the preset's name.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TheUpscalerLadderNamesTheDriverOnlyWhereNoHookDid()
|
||||
{
|
||||
InEnglish(() => Formats.Upscaler("unknown", null, "dlss")).Should().Be("DLSS (driver-reported)", "an NGX-direct title: the hook ran and saw nothing, the driver saw the feature evaluated");
|
||||
InEnglish(() => Formats.Upscaler(null, null, "dlss")).Should().Be("DLSS (driver-reported)");
|
||||
InEnglish(() => Formats.Upscaler("unknown", "2", "dlss")).Should().Be("DLSS (driver-reported)", "the driver's word is identity only");
|
||||
InEnglish(() => Formats.Upscaler("fsr3", null, "dlss")).Should().Be("FSR 3", "a hook's name always outranks the driver's");
|
||||
InEnglish(() => Formats.Upscaler("dlss", "2", "dlss")).Should().Be("DLSS Balanced");
|
||||
InEnglish(() => Formats.Upscaler("dlss", "6", null)).Should().Be("DLSS DLAA");
|
||||
InEnglish(() => Formats.Upscaler("dlss", "9", null)).Should().Be("DLSS 9", "a value with no name is shown as stored");
|
||||
InEnglish(() => Formats.Upscaler("unknown", null, null)).Should().Be("Upscaler not identified");
|
||||
InEnglish(() => Formats.Upscaler("unknown", "2", null)).Should().Be("Upscaler not identified", "a quality without a name to hang it on is not printed");
|
||||
InEnglish(() => Formats.Upscaler("none", null, null)).Should().Be("No upscaler");
|
||||
InEnglish(() => Formats.Upscaler(null, null, null)).Should().Be("N/A");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ResolutionsUpscalersAndFrameGeneration()
|
||||
{
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace FrameLedger.App.Tests;
|
||||
/// none is <c>—</c>, not measured is <c>N/A</c>, and they never collapse; Presented FPS never says "Native" and
|
||||
/// always carries its qualifier; a generated row shows Native first and the factor as a chip.
|
||||
/// </summary>
|
||||
[Collection(StringsCultureCollection.Name)]
|
||||
public sealed class FpsPresentationTests
|
||||
{
|
||||
private static readonly CultureInfo _en = CultureInfo.GetCultureInfo("en");
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" />
|
||||
<PackageReference Include="xunit.v3.mtp-off" />
|
||||
<PackageReference Include="xunit.v3" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" />
|
||||
<PackageReference Include="FluentAssertions" />
|
||||
<PackageReference Include="coverlet.collector" />
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using FluentAssertions;
|
||||
using FrameLedger.App.Pages;
|
||||
using FrameLedger.App.Services;
|
||||
@@ -17,7 +16,6 @@ namespace FrameLedger.App.Tests;
|
||||
/// page, a stamp reloads the row), FR-2.2's disabled toggle with the reason inline, FR-1.4's removal revoking
|
||||
/// consent over the pipe first.
|
||||
/// </summary>
|
||||
[Collection(StringsCultureCollection.Name)]
|
||||
public sealed class GameDetailViewModelTests
|
||||
{
|
||||
private static CancellationToken Ct => TestContext.Current.CancellationToken;
|
||||
@@ -92,13 +90,8 @@ public sealed class GameDetailViewModelTests
|
||||
public void Warn(string title, string body) => Lines.Add("warn:" + body);
|
||||
}
|
||||
|
||||
private sealed class FakePicker(string? path) : IGamePicker
|
||||
{
|
||||
public string? PickExecutable() => path;
|
||||
}
|
||||
|
||||
private static async Task<(GameDetailViewModel Vm, FakeAgent Agent, FakePrompt Prompt, FakeNavigator Nav, FakeStrip Strip)> BuildAsync(
|
||||
ScratchLedger s, long gameId, RemoveGameChoice remove = RemoveGameChoice.Cancel, GameMetadata? edit = null, string? pick = null)
|
||||
ScratchLedger s, long gameId, RemoveGameChoice remove = RemoveGameChoice.Cancel, GameMetadata? edit = null)
|
||||
{
|
||||
var agent = new FakeAgent();
|
||||
var prompt = new FakePrompt();
|
||||
@@ -106,8 +99,7 @@ public sealed class GameDetailViewModelTests
|
||||
var strip = new FakeStrip();
|
||||
var vm = new GameDetailViewModel(s.Library, new GameSelection { GameId = gameId }, new HookingConsent(agent, prompt), nav,
|
||||
new FakeConfirmations(remove), new FakeEdit(edit), strip, new NoSummaries(),
|
||||
new Charts.SessionSeriesLoader(s.Sessions), new Infrastructure.Persistence.SqliteHardwareSnapshotRepository(s.Db), new SessionSelection(),
|
||||
new FakePicker(pick));
|
||||
new Charts.SessionSeriesLoader(s.Sessions), new Infrastructure.Persistence.SqliteHardwareSnapshotRepository(s.Db), new SessionSelection());
|
||||
Task pending = vm.Pending;
|
||||
await pending.ConfigureAwait(false);
|
||||
return (vm, agent, prompt, nav, strip);
|
||||
@@ -311,64 +303,6 @@ public sealed class GameDetailViewModelTests
|
||||
strip.Lines.Should().ContainSingle().Which.Should().StartWith("info:");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ChangingTheExecutableRevokesOverThePipeFirstAndLeavesTheRowHookingOff()
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
GameRow game = await s.GameAsync("Alpha");
|
||||
await new Infrastructure.Persistence.SqliteGameConsentStore(s.Db).RecordOperatorAcknowledgementAsync(new Application.Consent.OperatorAcknowledgement
|
||||
{
|
||||
Fingerprint = game.Fingerprint,
|
||||
DisclosureVersion = SafetyDisclosure.Version,
|
||||
AcknowledgedAt = DateTimeOffset.UtcNow,
|
||||
Provenance = Domain.Consent.ConsentProvenance.ConsentDialog,
|
||||
}, Ct);
|
||||
// A real file: the fingerprint is read from disk, as it is when a game is added.
|
||||
string real = Path.Combine(Path.GetTempPath(), "fl-change-exe-" + Guid.NewGuid().ToString("N") + ".exe");
|
||||
await File.WriteAllBytesAsync(real, new byte[123], Ct);
|
||||
try
|
||||
{
|
||||
(GameDetailViewModel vm, FakeAgent agent, _, _, FakeStrip strip) = await BuildAsync(s, game.Id, pick: real);
|
||||
vm.HookEnabled.Should().BeTrue();
|
||||
|
||||
vm.ChangeExecutableCommand.Execute(null);
|
||||
Task pending = vm.Pending;
|
||||
await pending;
|
||||
|
||||
agent.Sent.Should().ContainSingle().Which.Enabled.Should().BeFalse("consent is withdrawn over the pipe, never by editing the table");
|
||||
GameRow after = (await s.Games.FindByIdAsync(game.Id, Ct))!;
|
||||
after.Fingerprint.ExePath.Should().Be(Infrastructure.Io.ExecutableIdentity.Normalise(real));
|
||||
after.Fingerprint.SizeBytes.Should().Be(123);
|
||||
after.HookEnabled.Should().BeFalse();
|
||||
vm.ExecutableText.Should().Be(after.Fingerprint.ExePath);
|
||||
strip.Lines.Should().ContainSingle().Which.Should().StartWith("success:");
|
||||
}
|
||||
finally
|
||||
{
|
||||
File.Delete(real);
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ChangingTheExecutableToAnUnreadableFileOrCancellingChangesNothing()
|
||||
{
|
||||
await using ScratchLedger s = await ScratchLedger.OpenAsync();
|
||||
GameRow game = await s.GameAsync("Alpha");
|
||||
|
||||
(GameDetailViewModel cancelled, _, _, _, FakeStrip quiet) = await BuildAsync(s, game.Id, pick: null);
|
||||
cancelled.ChangeExecutableCommand.Execute(null);
|
||||
Task pending1 = cancelled.Pending;
|
||||
await pending1;
|
||||
quiet.Lines.Should().BeEmpty();
|
||||
|
||||
(GameDetailViewModel vm, _, _, _, FakeStrip strip) = await BuildAsync(s, game.Id, pick: Path.Combine(Path.GetTempPath(), "fl-no-such-" + Guid.NewGuid().ToString("N") + ".exe"));
|
||||
vm.ChangeExecutableCommand.Execute(null);
|
||||
Task pending2 = vm.Pending;
|
||||
await pending2;
|
||||
strip.Lines.Should().ContainSingle().Which.Should().StartWith("warn:");
|
||||
(await s.Games.FindByIdAsync(game.Id, Ct))!.Fingerprint.Should().Be(game.Fingerprint);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task EditingWritesTheMetadataAndAnUnknownGameIsNotFound()
|
||||
{
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace FrameLedger.App.Tests;
|
||||
/// an acknowledged one sends exactly <c>SetHookEnabled { enabled: true, disclosureVersion: ours }</c>, and the
|
||||
/// Agent's three answers (stamped, refused, error) come back as what they are.
|
||||
/// </summary>
|
||||
[Collection(StringsCultureCollection.Name)]
|
||||
public sealed class HookingConsentTests
|
||||
{
|
||||
private static CancellationToken Ct => TestContext.Current.CancellationToken;
|
||||
|
||||
@@ -360,7 +360,7 @@ public sealed class PagesLoadTests
|
||||
Task pending2 = games.Pending;
|
||||
await pending2;
|
||||
var detail = new GameDetailViewModel(s.Library, selection, consent, nav, new NoConfirm(), new NoEdit(), strip, new NoSummaries(),
|
||||
new SessionSeriesLoader(s.Sessions), new Infrastructure.Persistence.SqliteHardwareSnapshotRepository(s.Db), new SessionSelection(), new NoPicker());
|
||||
new SessionSeriesLoader(s.Sessions), new Infrastructure.Persistence.SqliteHardwareSnapshotRepository(s.Db), new SessionSelection());
|
||||
var compare = new CompareViewModel(s.Library, new SessionSeriesLoader(s.Sessions), new NoMixed(), new NoSaver(), strip);
|
||||
Task pending3 = detail.Pending;
|
||||
await pending3;
|
||||
|
||||
@@ -11,7 +11,6 @@ using FrameLedger.Infrastructure.Persistence;
|
||||
namespace FrameLedger.App.Tests;
|
||||
|
||||
/// <summary>The summary over a scratch ledger: stat cards from the stored aggregates, the override writing the annotation (and the game default), tags/notes saved, exports through a scripted saver.</summary>
|
||||
[Collection(StringsCultureCollection.Name)]
|
||||
public sealed class SessionSummaryViewModelTests
|
||||
{
|
||||
private static CancellationToken Ct => TestContext.Current.CancellationToken;
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
namespace FrameLedger.App.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// The collection every test class that WRITES the process-wide <c>Strings.Culture</c> belongs to, so they run one after
|
||||
/// another. The property is a static the App sets once at start-up; eight test classes set it to <c>en</c> around their
|
||||
/// assertions and <see cref="StringsTests"/> sets it to <c>vi</c>, and as separate collections they ran in parallel: the
|
||||
/// first gate run on xUnit.net v3 4.0.1 (2026-09-21) read "Settings" where it had just written <c>vi</c>. The race was
|
||||
/// always there; the new scheduler found it. An implicit collection: no fixture, so no definition class is needed.
|
||||
/// </summary>
|
||||
internal static class StringsCultureCollection
|
||||
{
|
||||
public const string Name = "strings-culture";
|
||||
}
|
||||
@@ -10,7 +10,6 @@ namespace FrameLedger.App.Tests;
|
||||
/// (a missing satellite would fall back to English silently, and this is the one place that would show), and
|
||||
/// the accessor's key list is the resx's — the audit gate checks the same from the outside.
|
||||
/// </summary>
|
||||
[Collection(StringsCultureCollection.Name)]
|
||||
public sealed class StringsTests
|
||||
{
|
||||
private static readonly string[] _cultures = ["en", "vi", "ja"];
|
||||
|
||||
@@ -7,7 +7,6 @@ using FrameLedger.Domain.Sessions;
|
||||
namespace FrameLedger.App.Tests;
|
||||
|
||||
/// <summary>FR-6.3 / FR-6.4: points per hooked session oldest first, mid-session-change sessions out by default, Displayed only where measured, markers where consecutive snapshots differ.</summary>
|
||||
[Collection(StringsCultureCollection.Name)]
|
||||
public sealed class TrendSeriesBuilderTests
|
||||
{
|
||||
private static SessionRow Row(int day, long snapshotId, bool hooked = true, bool midSession = false, string fgMode = "none", double? native = 60, double? displayed = null, double? presented = null, double? p1 = 48, double? gpu = 70, double? factor = null, string? refusal = null) => new()
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" />
|
||||
<PackageReference Include="xunit.v3.mtp-off" />
|
||||
<PackageReference Include="xunit.v3" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" />
|
||||
<PackageReference Include="FluentAssertions" />
|
||||
<PackageReference Include="NSubstitute" />
|
||||
|
||||
@@ -31,25 +31,6 @@ public sealed class SessionProgressCalculatorTests
|
||||
NgxDriver = NgxDriverState.NotRun,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// 03_METRICS §The driver-reported rung on the wire (2026-09-21): an NGX-direct title has no hook that can name its
|
||||
/// upscaler, so the live card read "unknown" for the whole session while the row that session became said DLSS.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void TheDriversWordTravelsToTheLiveCardAndOnlyWhenTheDriverAnswered()
|
||||
{
|
||||
List<FlFrameRecord> records = SessionFixtures.Stream(1000, FlMeasured.OutputRes | FlMeasured.PresentArgs);
|
||||
NgxDriverState created = NgxDriverState.Parse("NGXSTATE status=ANSWERED sr=0x600 rr=0x1 fg=0x5 ratio=0.0000 mode=0 preset=0 fgcount=0 fgpreset=0 fgmode=0 driver=61664");
|
||||
NgxDriverState idle = NgxDriverState.Parse("NGXSTATE status=ANSWERED sr=0x5 rr=0x1 fg=0x5 ratio=0.0000 mode=0 preset=0 fgcount=0 fgpreset=0 fgmode=0 driver=61664");
|
||||
|
||||
SessionProgressCalculator.Compute(_guid, Progress(records) with { NgxDriver = created }, SessionFixtures.QpcFrequency, 12.5, gpu: null)
|
||||
.UpscalerDriverReported.Should().Be("dlss", "CREATED | EVALUATE on the super-resolution word");
|
||||
SessionProgressCalculator.Compute(_guid, Progress(records) with { NgxDriver = idle }, SessionFixtures.QpcFrequency, 12.5, gpu: null)
|
||||
.UpscalerDriverReported.Should().BeNull("the feature exists in the driver's bookkeeping and was never evaluated");
|
||||
SessionProgressCalculator.Compute(_guid, Progress(records), SessionFixtures.QpcFrequency, 12.5, gpu: null)
|
||||
.UpscalerDriverReported.Should().BeNull("no probe ran: AMD, Intel, or no bridge beside the Agent");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void OnlyTheLastFiveSecondsCountAndThePresentedRateStandsAloneWithItsQualifier()
|
||||
{
|
||||
|
||||
@@ -49,9 +49,6 @@ internal sealed class FakeGameRepository : IGameRepository
|
||||
return ValueTask.FromResult(true);
|
||||
}
|
||||
|
||||
public ValueTask<bool> ChangeExecutableAsync(long gameId, ExecutableFingerprint fingerprint, DateTimeOffset at, CancellationToken ct = default) =>
|
||||
ValueTask.FromResult(true);
|
||||
|
||||
public ValueTask<int> RecordCrashAsync(long gameId, CancellationToken ct = default) => ValueTask.FromResult(++CrashCount);
|
||||
|
||||
public ValueTask<bool> RecordInjectionAsync(long gameId, DateTimeOffset at, CancellationToken ct = default)
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" />
|
||||
<PackageReference Include="xunit.v3.mtp-off" />
|
||||
<PackageReference Include="xunit.v3" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" />
|
||||
<PackageReference Include="FluentAssertions" />
|
||||
<PackageReference Include="coverlet.collector" />
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" />
|
||||
<PackageReference Include="xunit.v3.mtp-off" />
|
||||
<PackageReference Include="xunit.v3" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" />
|
||||
<PackageReference Include="FluentAssertions" />
|
||||
<PackageReference Include="NSubstitute" />
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
using FluentAssertions;
|
||||
using FrameLedger.Domain.Metrics;
|
||||
|
||||
namespace FrameLedger.Domain.Tests.Metrics;
|
||||
|
||||
public sealed class UpscalerNamesTests
|
||||
{
|
||||
[Theory]
|
||||
[InlineData("1", "Performance")]
|
||||
[InlineData("2", "Balanced")]
|
||||
[InlineData("3", "Quality")]
|
||||
[InlineData("4", "Ultra Performance")]
|
||||
[InlineData("5", "Ultra Quality")]
|
||||
[InlineData("6", "DLAA")]
|
||||
public void ADlssModeIsTheNameTheMenuUses(string stored, string name) =>
|
||||
UpscalerNames.Quality("dlss", stored).Should().Be(name, "sl::DLSSMode, as fl_sl_inputs.h QualityFromMode writes it");
|
||||
|
||||
[Theory]
|
||||
[InlineData("dlss", "7")]
|
||||
[InlineData("dlss", "0")]
|
||||
[InlineData("fsr3", "2")]
|
||||
[InlineData("xess", "3")]
|
||||
[InlineData(null, "2")]
|
||||
public void AValueWithNoNameIsShownAsStored(string? upscaler, string stored) =>
|
||||
UpscalerNames.Quality(upscaler, stored).Should().Be(stored, "a number nobody can name is still what was measured");
|
||||
|
||||
[Theory]
|
||||
[InlineData(null)]
|
||||
[InlineData("")]
|
||||
[InlineData(" ")]
|
||||
public void NoQualityIsNoName(string? stored) =>
|
||||
UpscalerNames.Quality("dlss", stored).Should().BeNull();
|
||||
}
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" />
|
||||
<PackageReference Include="xunit.v3.mtp-off" />
|
||||
<PackageReference Include="xunit.v3" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" />
|
||||
<PackageReference Include="FluentAssertions" />
|
||||
<PackageReference Include="NSubstitute" />
|
||||
|
||||
@@ -1,114 +0,0 @@
|
||||
using FluentAssertions;
|
||||
using FrameLedger.Infrastructure.Import;
|
||||
|
||||
namespace FrameLedger.Infrastructure.Tests.Import;
|
||||
|
||||
/// <summary>
|
||||
/// The install trees the locator was measured wrong on (2026-09-21), rebuilt with the real file names and the real
|
||||
/// sizes: what mattered on GIRLS' FRONTLINE 2 was that a plugin-folder helper out-weighed a Unity player stub.
|
||||
/// </summary>
|
||||
public sealed class ExecutableLocatorTests : IDisposable
|
||||
{
|
||||
private readonly string _dir = Path.Combine(Path.GetTempPath(), "fl-locator-" + Guid.NewGuid().ToString("N"));
|
||||
|
||||
public ExecutableLocatorTests() => Directory.CreateDirectory(_dir);
|
||||
|
||||
public void Dispose() => Directory.Delete(_dir, recursive: true);
|
||||
|
||||
private static CancellationToken Ct => TestContext.Current.CancellationToken;
|
||||
|
||||
private string Sub(params string[] parts)
|
||||
{
|
||||
string p = Path.Combine([_dir, .. parts]);
|
||||
Directory.CreateDirectory(p);
|
||||
return p;
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task AUnityPlayerBeatsTheLargerBrowserHelperInItsPluginFolder()
|
||||
{
|
||||
// An apostrophe in the directory name, as on disk: the path is data everywhere it travels.
|
||||
string game = Sub("GIRLS' FRONTLINE 2 EXILIUM");
|
||||
string plugins = Sub("GIRLS' FRONTLINE 2 EXILIUM", "GF2_Exilium_Data", "Plugins");
|
||||
await File.WriteAllBytesAsync(Path.Combine(game, "GF2_Exilium.exe"), new byte[675_392], Ct);
|
||||
await File.WriteAllBytesAsync(Path.Combine(game, "UnityCrashHandler64.exe"), new byte[1_077_896], Ct);
|
||||
await File.WriteAllBytesAsync(Path.Combine(game, "crashpad_handler.exe"), new byte[917_056], Ct);
|
||||
await File.WriteAllBytesAsync(Path.Combine(game, "KernelDumpAnalyzer.exe"), new byte[36_928], Ct);
|
||||
await File.WriteAllBytesAsync(Path.Combine(plugins, "ZFGameBrowser.exe"), new byte[1_082_944], Ct);
|
||||
|
||||
new ExecutableLocator().PickPrimary(game).Should().Be(Path.Combine(game, "GF2_Exilium.exe"),
|
||||
"X.exe beside X_Data is the Unity player; the browser helper is larger, is under X_Data\\Plugins, and is not the game");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ThePluginFolderIsExcludedEvenWhenNothingElseMarksTheHelper()
|
||||
{
|
||||
string game = Sub("Title");
|
||||
string plugins = Sub("Title", "Title_Data", "Plugins", "x86_64");
|
||||
await File.WriteAllBytesAsync(Path.Combine(game, "Title.exe"), new byte[100], Ct);
|
||||
await File.WriteAllBytesAsync(Path.Combine(plugins, "Overlay.exe"), new byte[900_000], Ct);
|
||||
|
||||
ExecutableLocator.IsUnderPluginFolder(game, Path.Combine(plugins, "Overlay.exe")).Should().BeTrue();
|
||||
ExecutableLocator.IsUnderPluginFolder(game, Path.Combine(game, "Title.exe")).Should().BeFalse();
|
||||
new ExecutableLocator().PickPrimary(game).Should().Be(Path.Combine(game, "Title.exe"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task AnUnrealShippingBinaryBeatsALargerRootBootstrapper()
|
||||
{
|
||||
string game = Sub("Rune Factory Guardians of Azuma");
|
||||
string bin = Sub("Rune Factory Guardians of Azuma", "Game", "Binaries", "Win64");
|
||||
await File.WriteAllBytesAsync(Path.Combine(game, "Game.exe"), new byte[500_000], Ct);
|
||||
await File.WriteAllBytesAsync(Path.Combine(bin, "Game-Win64-Shipping.exe"), new byte[400_000], Ct);
|
||||
|
||||
new ExecutableLocator().PickPrimary(game).Should().Be(Path.Combine(bin, "Game-Win64-Shipping.exe"),
|
||||
"the root executable of an Unreal package starts the shipping binary and exits; the shipping binary is the process that presents");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task AnExecutableNamedAfterTheInstallBeatsALargerStranger()
|
||||
{
|
||||
string game = Sub("Cyberpunk 2077");
|
||||
string bin = Sub("Cyberpunk 2077", "bin", "x64");
|
||||
await File.WriteAllBytesAsync(Path.Combine(bin, "Cyberpunk2077.exe"), new byte[1000], Ct);
|
||||
await File.WriteAllBytesAsync(Path.Combine(bin, "REDprelauncher.exe"), new byte[5000], Ct);
|
||||
|
||||
new ExecutableLocator().PickPrimary(game).Should().Be(Path.Combine(bin, "Cyberpunk2077.exe"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ARedistributablesFolderIsNotWalkedAndTheFourthLevelIs()
|
||||
{
|
||||
string rdr = Sub("Red Dead Redemption 2");
|
||||
string redist = Sub("Red Dead Redemption 2", "Redistributables");
|
||||
await File.WriteAllBytesAsync(Path.Combine(rdr, "RDR2.exe"), new byte[90_000], Ct);
|
||||
await File.WriteAllBytesAsync(Path.Combine(rdr, "PlayRDR2.exe"), new byte[500], Ct);
|
||||
await File.WriteAllBytesAsync(Path.Combine(redist, "Rockstar-Games-Launcher.exe"), new byte[140_000], Ct);
|
||||
new ExecutableLocator().PickPrimary(rdr).Should().Be(Path.Combine(rdr, "RDR2.exe"));
|
||||
|
||||
string beast = Sub("Dying Light The Beast");
|
||||
string bin = Sub("Dying Light The Beast", "ph_ft", "work", "bin", "x64");
|
||||
await File.WriteAllBytesAsync(Path.Combine(bin, "DyingLightGame_TheBeast_x64_rwdi.exe"), new byte[1000], Ct);
|
||||
await File.WriteAllBytesAsync(Path.Combine(bin, "crashpad_handler.exe"), new byte[5000], Ct);
|
||||
new ExecutableLocator().PickPrimary(beast).Should().Be(Path.Combine(bin, "DyingLightGame_TheBeast_x64_rwdi.exe"), "the title keeps its game four levels down");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task SizeStillDecidesBetweenEquals()
|
||||
{
|
||||
string game = Sub("Some Title");
|
||||
await File.WriteAllBytesAsync(Path.Combine(game, "a.exe"), new byte[10], Ct);
|
||||
await File.WriteAllBytesAsync(Path.Combine(game, "b.exe"), new byte[2000], Ct);
|
||||
|
||||
new ExecutableLocator().PickPrimary(game).Should().Be(Path.Combine(game, "b.exe"));
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("ZFGameBrowser")]
|
||||
[InlineData("KernelDumpAnalyzer")]
|
||||
[InlineData("msedgewebview2")]
|
||||
[InlineData("QtWebEngineSubprocess")]
|
||||
[InlineData("vconsole2")]
|
||||
public void TheHelpersThisWasMeasuredOnAreHelpers(string name) =>
|
||||
ExecutableLocator.IsHelper(name).Should().BeTrue();
|
||||
}
|
||||
@@ -248,7 +248,7 @@ public sealed class StoreLibrarySourcesTests : IDisposable
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task TheLocatorDropsHelpersAndStopsAtFourLevels()
|
||||
public async Task TheLocatorTakesTheLargestNonHelperExecutableWithinThreeLevels()
|
||||
{
|
||||
string game = Sub("Game");
|
||||
string bin = Sub("Game", "Binaries", "Win64");
|
||||
@@ -256,11 +256,11 @@ public sealed class StoreLibrarySourcesTests : IDisposable
|
||||
await File.WriteAllBytesAsync(Path.Combine(game, "UnityCrashHandler64.exe"), new byte[5000], Ct);
|
||||
await File.WriteAllBytesAsync(Path.Combine(bin, "Title-Win64-Shipping.exe"), new byte[4000], Ct);
|
||||
await File.WriteAllBytesAsync(Path.Combine(bin, "EasyAntiCheat_Setup.exe"), new byte[9000], Ct);
|
||||
string deep = Sub("Game", "a", "b", "c", "d", "e");
|
||||
string deep = Sub("Game", "a", "b", "c", "d");
|
||||
await File.WriteAllBytesAsync(Path.Combine(deep, "TooDeep.exe"), new byte[99999], Ct);
|
||||
|
||||
var locator = new ExecutableLocator();
|
||||
locator.PickPrimary(game).Should().Be(Path.Combine(bin, "Title-Win64-Shipping.exe"), "helpers are dropped by name, the fifth level is not walked, and the Unreal shipping binary outranks the root launcher (ExecutableLocatorTests holds the ranking)");
|
||||
locator.PickPrimary(game).Should().Be(Path.Combine(bin, "Title-Win64-Shipping.exe"), "helpers are dropped by name, the fourth level is not walked, the largest survivor wins");
|
||||
locator.PickPrimary(Path.Combine(_dir, "nowhere")).Should().BeNull();
|
||||
ExecutableLocator.IsHelper("vc_redist.x64").Should().BeTrue();
|
||||
ExecutableLocator.IsHelper("Cyberpunk2077").Should().BeFalse();
|
||||
|
||||
@@ -162,48 +162,6 @@ public sealed class SqliteGameRepositoryTests
|
||||
(await repo.ListAsync(Ct)).Should().ContainSingle();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ChangingTheExecutableLeavesARowAsANewGameWouldBeAndNeverClearsABlock()
|
||||
{
|
||||
await using LedgerFixture f = await LedgerFixture.OpenAsync();
|
||||
var repo = new SqliteGameRepository(f.Db);
|
||||
GameRow row = await repo.EnsureAsync(_exe, "T", Ct);
|
||||
// The state a wrong import guess ends in once the user enabled hooking on it, plus a block to prove it survives.
|
||||
await f.Db.WriteAsync((c, tx, ct) => c.ExecuteAsync(new CommandDefinition(
|
||||
"UPDATE games SET hook_enabled = 1, hook_consent_at = 5, hook_consent_provenance = 'ConsentDialog', hook_consent_disclosure_version = 'v', "
|
||||
+ "hook_prescan_state = 'clean', hook_blocked_reason = 'a block' WHERE id = @id",
|
||||
new { id = row.Id }, tx, cancellationToken: ct)), Ct);
|
||||
var real = new ExecutableFingerprint { ExePath = @"C:\Games\T\GF2_Exilium.exe", SizeBytes = 675_392, MtimeUnixMs = 30 };
|
||||
|
||||
(await repo.ChangeExecutableAsync(row.Id, real, DateTimeOffset.FromUnixTimeMilliseconds(99), Ct)).Should().BeTrue();
|
||||
|
||||
GameRow after = (await repo.FindByIdAsync(row.Id, Ct))!;
|
||||
after.Fingerprint.Should().Be(real);
|
||||
after.HookEnabled.Should().BeFalse("everything downstream is keyed on the executable; a consent is about the one it was given for");
|
||||
after.HookConsentAt.Should().BeNull();
|
||||
after.HookPrescanState.Should().Be("not_run");
|
||||
after.HookBlockedReason.Should().Be("a block", "nothing clears a block, and pointing the row elsewhere is not a way round that");
|
||||
(await repo.FindAsync(_exe.ExePath, Ct)).Should().BeNull("the row moved; it was not copied");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ChangingTheExecutableToOneAnotherRowOwnsIsRefused()
|
||||
{
|
||||
await using LedgerFixture f = await LedgerFixture.OpenAsync();
|
||||
var repo = new SqliteGameRepository(f.Db);
|
||||
GameRow wrong = await repo.EnsureAsync(_exe, "T", Ct);
|
||||
var real = new ExecutableFingerprint { ExePath = @"C:\Games\T\real.exe", SizeBytes = 1, MtimeUnixMs = 2 };
|
||||
GameRow other = await repo.EnsureAsync(real, "T (added by hand)", Ct);
|
||||
|
||||
(await repo.ChangeExecutableAsync(wrong.Id, real, DateTimeOffset.UtcNow, Ct)).Should().BeFalse("exe_path is UNIQUE: one executable, one row");
|
||||
(await repo.FindByIdAsync(wrong.Id, Ct))!.Fingerprint.Should().Be(_exe);
|
||||
|
||||
// A row removed with its sessions kept still owns its path, and a removed row cannot be re-pointed.
|
||||
await repo.RemoveAsync(other.Id, keepSessions: true, Ct);
|
||||
(await repo.ChangeExecutableAsync(wrong.Id, real, DateTimeOffset.UtcNow, Ct)).Should().BeFalse();
|
||||
(await repo.ChangeExecutableAsync(other.Id, new ExecutableFingerprint { ExePath = @"C:\x.exe", SizeBytes = 1, MtimeUnixMs = 1 }, DateTimeOffset.UtcNow, Ct)).Should().BeFalse();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task AUserEditMarksOnlyTheChangedFieldsAsUserAndTouchesNoHookColumn()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user