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

Closed
figmasigma122343-bot wants to merge 0 commits from upstream-pr/35 into main
figmasigma122343-bot commented 2026-11-21 18:44:18 +00:00 (Migrated from github.com)

Imported from omonkeyz/xbox-emulator. Originally posted by figmasigma122343-bot on 2026-11-21T18:44:18Z.


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

<!-- greyfinch-sync:omonkeyz/xbox-emulator:issue:6532904472 --> Imported from [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator/pull/35). Originally posted by [figmasigma122343-bot](https://github.com/figmasigma122343-bot) on 2026-11-21T18:44:18Z. --- ## 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
figmasigma122343-bot commented 2026-11-22 07:56:38 +00:00 (Migrated from github.com)

Imported from omonkeyz/xbox-emulator. Originally posted by figmasigma122343-bot on 2026-11-22T07:56:38Z.


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.

<!-- greyfinch-sync:omonkeyz/xbox-emulator:comment:7076213920 --> Imported from [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator/pull/35#issuecomment-7076213920). Originally posted by [figmasigma122343-bot](https://github.com/figmasigma122343-bot) on 2026-11-22T07:56:38Z. --- 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

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
omonkeyz/xbox-emulator!35
No description provided.