Clean clone does not build: compat-common includes unpublished backend_data/ files #31
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 LooperSalty on 2026-11-21T18:19:10Z.
Hi, and thanks for publishing this work under MIT/Apache-2.0.
Problem. From a clean clone at
fef9a6e,cargo build -p d3d12_xs(and any crate depending oncompat-common) fails with 28couldn't readerrors.compat-commonusesinclude_str!/include_bytes!oncrates/compat/compat-common/backend_data/**(Fortnite profiles, catalog, keychain, video segments, Trackmania routes, XDefiant parameters). Those files were never committed, which I understand is deliberate.Workaround we use. In AnyXboxX (LGPL-2.1; your repo is a pinned submodule and is credited in THIRD_PARTY.md),
tools/build_tombox.pycreates empty placeholders, only underbackend_data/, then builds.d3d12_xs.dllthen builds and loads fine. We use it to serveD3D12XboxCreateDeviceandDXGIXPresentArrayfrom our native launcher.Suggestion. Either a cargo feature gating the title-specific online backends (default off), or a
build.rsstep that falls back to empty data whenbackend_data/is absent. Either way,cargo buildwould work from a clean clone and in CI. I can open a PR for whichever you prefer.Possibly useful in return. We compared the
tombox-xshaderRDNA2 disassembler with the 29,522 unique encodings in LLVM's public gfx10/gfx1030 MC tests:ds_add_f32,image_msaa_load, 16-bit compares,s_call_b64, …);flat_*, and some names are gfx1010 rather than gfx1030 (v_mac_legacy_f32vsv_fmac_legacy_f32).Full report: https://github.com/LooperSalty/AnyXboxX/blob/main/docs/recherche/tombox-decodeur.md. Our LLVM-generated table (
PrototypeScarlett/emu/rdna2_ops.py, generatortools/rdna2_mnemonics.py) covers the missing opcodes, if you want to reuse it.Imported from omonkeyz/xbox-emulator. Originally posted by figmasigma122343-bot on 2026-11-21T18:45:14Z.
Current main now gates the online modules with cfg(tombox_backend_data). After cargo clean, cargo build -p compat-common succeeds even without backend_data/, so the placeholder fallback in #35 is no longer needed; #35 is closed.
Imported from omonkeyz/xbox-emulator. Originally posted by omonkeyz on 2026-11-22T13:20:25Z.
Fixed on main since
1fc8683: the modules that use backend_data/ are gated behind cfg(tombox_backend_data), so a clean clone builds compat-common and d3d12_xs (re-checked on a fresh clone of current main). Thanks!