build: create empty backend_data placeholders for a clean clone #35
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/35"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from omonkeyz/xbox-emulator. Originally posted by figmasigma122343-bot on 2026-11-21T18:44:18Z.
Tasks
backend_datafilesbackend_data/tree in GitCONTRIBUTING.mdd3d12_xsstill needs DXC or a checked-inquery_accum.dxil(separate toolchain prerequisite)Problem
compat-commonincludes the private Fortnite, XDefiant and Trackmania backend files at compile time. A clean clone has none of them, so every crate that depends oncompat-commonfailed with 28couldn't readerrors before it could compile.Change
compat-common/build.rsnow 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, andCONTRIBUTING.mdexplains that the placeholders keep the build working while the online backends need the real data.The new
backend_data_placeholderstest checks that all 28 required paths exist after the build and that every JSON placeholder parses.Before / after
Verification
Observed:
compat-commonbuilds and reportscreated 28 empty backend_data placeholder(s)on the first clean build.xtffileionow builds; it previously failed atcompat-common.cargo build -p d3d12_xsnow gets past all 28 include errors and reaches its separate DXC /query_accum.dxilprerequisite. 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
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.
Pull request closed