build: create empty backend_data placeholders for a clean clone #35

Closed
github-bot wants to merge 1 commit from gh-pr/35/head into gh-pr/35/base
Owner

@⁠figmasigma122343-bot on GitHub · 2026-11-21 18:44 UTC · original
figmasigma122343-bot:build/backend-data-fallback → main · +107 −0 · 4 files · 1 commits · closed without merging

Tasks

  • Create empty placeholders for the missing backend_data files
  • Never overwrite private data a contributor already has
  • Ignore the local backend_data/ tree in Git
  • Test that all 28 required files exist and the JSON files parse
  • Document the clean-clone behaviour in CONTRIBUTING.md
  • d3d12_xs still needs DXC or a checked-in query_accum.dxil (separate toolchain prerequisite)

Problem

compat-common includes the private Fortnite, XDefiant and Trackmania backend files at compile time. A clean clone has none of them, so every crate that depends on compat-common failed with 28 couldn't read errors before it could compile.

Change

compat-common/build.rs now creates empty JSON, INI and video placeholders only for files that are absent. Real files are never overwritten. crates/compat/compat-common/backend_data/ is ignored by Git, and CONTRIBUTING.md explains that the placeholders keep the build working while the online backends need the real data.

The new backend_data_placeholders test checks that all 28 required paths exist after the build and that every JSON placeholder parses.

Before / after

Clean clone build: 28 missing backend_data errors, then a successful build

Verification

cargo build -p compat-common
cargo build -p xtffileio
cargo test -p compat-common --test backend_data_placeholders

Observed:

  • compat-common builds and reports created 28 empty backend_data placeholder(s) on the first clean build.
  • xtffileio now builds; it previously failed at compat-common.
  • The placeholder test passes.
  • cargo build -p d3d12_xs now gets past all 28 include errors and reaches its separate DXC / query_accum.dxil prerequisite. With DXC available (the existing documented requirement), it can compile the shader as before.

Scope

This PR only removes the unpublished-data build blocker. The online backends still need the real title data to return non-empty responses, and the online tests that assert real profile contents remain meaningful only when that data is present.

Fixes #31

**@⁠figmasigma122343-bot** on GitHub · 2026-11-21 18:44 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/35) `figmasigma122343-bot:build/backend-data-fallback` → `main` · +107 −0 · 4 files · 1 commits · closed without merging ## Tasks - [x] Create empty placeholders for the missing `backend_data` files - [x] Never overwrite private data a contributor already has - [x] Ignore the local `backend_data/` tree in Git - [x] Test that all 28 required files exist and the JSON files parse - [x] Document the clean-clone behaviour in `CONTRIBUTING.md` - [ ] `d3d12_xs` still needs DXC or a checked-in `query_accum.dxil` (separate toolchain prerequisite) ## Problem `compat-common` includes the private Fortnite, XDefiant and Trackmania backend files at compile time. A clean clone has none of them, so every crate that depends on `compat-common` failed with 28 `couldn't read` errors before it could compile. ## Change `compat-common/build.rs` now creates empty JSON, INI and video placeholders only for files that are absent. Real files are never overwritten. `crates/compat/compat-common/backend_data/` is ignored by Git, and `CONTRIBUTING.md` explains that the placeholders keep the build working while the online backends need the real data. The new `backend_data_placeholders` test checks that all 28 required paths exist after the build and that every JSON placeholder parses. ## Before / after ![Clean clone build: 28 missing backend_data errors, then a successful build](https://raw.githubusercontent.com/figmasigma122343-bot/xbox-emulator/assets/progress-2080/build-backend-data-diff.png) ## Verification ```powershell cargo build -p compat-common cargo build -p xtffileio cargo test -p compat-common --test backend_data_placeholders ``` Observed: - `compat-common` builds and reports `created 28 empty backend_data placeholder(s)` on the first clean build. - `xtffileio` now builds; it previously failed at `compat-common`. - The placeholder test passes. - `cargo build -p d3d12_xs` now gets past all 28 include errors and reaches its separate DXC / `query_accum.dxil` prerequisite. With DXC available (the existing documented requirement), it can compile the shader as before. ## Scope This PR only removes the unpublished-data build blocker. The online backends still need the real title data to return non-empty responses, and the online tests that assert real profile contents remain meaningful only when that data is present. Fixes #31
compat-common includes the private Fortnite, XDefiant and Trackmania backend files at compile time. A clean clone has none of them, so every crate that depends on compat-common failed with couldn't-read errors before compiling.

The build script now creates empty JSON/INI/video placeholders only for files that are absent, never overwriting real data. backend_data/ is ignored by Git. A new test checks that all 28 required files exist after the build and that the JSON placeholders parse.

Verified: cargo build -p compat-common; cargo build -p xtffileio; cargo test -p compat-common --test backend_data_placeholders. d3d12_xs now gets past the 28 include errors and reaches its separate DXC/query_accum.dxil prerequisite.

Refs #31
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:07:59 +00:00
github-bot closed this pull request 2026-11-26 06:07:59 +00:00
Author
Owner

@⁠figmasigma122343-bot on GitHub · 2026-11-22 07:56 UTC · original

Closing: current main now gates the online modules with cfg(tombox_backend_data) when backend_data/ is absent. After cargo clean, cargo build -p compat-common succeeds without placeholders, so this fallback is no longer needed.

**@⁠figmasigma122343-bot** on GitHub · 2026-11-22 07:56 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/35#issuecomment-7076213920) Closing: current main now gates the online modules with cfg(tombox_backend_data) when backend_data/ is absent. After cargo clean, cargo build -p compat-common succeeds without placeholders, so this fallback is no longer needed.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.