feat: proxy D3D12 de TomBox par défaut (runtime/build/tombox) #109

Merged
LooperSalty merged 3 commits from upstream-pr/109 into main 2026-11-23 19:28:19 +00:00
LooperSalty commented 2026-11-23 19:23:09 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-23T19:23:09Z.


Résumé

Le mode natif utilise désormais par défaut les DLL console de TomBox (sous-module third_party/tombox, compilé depuis son dépôt public, rien de copié). Le proxy D3D12 Xbox (D3D12XboxCreateDevice, absent de notre d3d12_xs) vient de TomBox : on ne réécrit pas ce qui existe déjà.

Ordre de chargement

DLL Servie par défaut Pourquoi
d3d12_xs TomBox 64 exports contre 5 ; le device proxy manque chez nous
xmem TomBox 40 exports contre 16 ; W1 vérifié (XMemVirtualAlloc avec 0x20402000 non NULL)
XCRDAPI TomBox 138 exports contre 1 ; DStorageGetFactory écrit une fabrique (W5)
d3d12_x, xaudio2_9, xapu, xg_xs, xgs12 TomBox nous n'en avons aucune
xgameruntime, kernelx, anyxboxx_tls AnyXboxX TomBox n'en a pas

Sans DLL compilées, le runtime sert les nôtres et écrit dans le journal la commande à lancer. ANYXBOXX_TOMBOX_DIR remplace le dossier par défaut runtime/build/tombox.

Changements

  • tools/build_tombox.py : sans argument, compile la liste complète et copie les DLL dans runtime/build/tombox.
  • PrototypeScarlett/emu/tombox_paths.py : constantes partagées (dossier, variable, DLL préférées).
  • runtime.py, translation.py, runtime/launcher/launcher.cpp : même règle de dossier et mêmes DLL préférées.
  • CI : l'étape TomBox appelle python tools/build_tombox.py (même liste, plus xcrdapi).
  • Tests : résolution de l'ordre de chargement, installation des DLL, et trois tests natifs (D3D12XboxCreateDevice, W1, W5) sans variable d'environnement. Les autres tests du runtime pointent un dossier TomBox vide pour rester sur nos DLL.
  • Documentation : W5 résolu dans docs/research/first-boot-1021.md et docs/fr/recherche/premier-demarrage-1021.md, commande de construction dans AGENTS.md. Compteur de tests des 8 README : 545.

Ce qui manque en amont (non modifié dans le sous-module)

  • TomBox n'exporte pas XMemGetAllocationHooks (exporté par notre xmem, sans import constaté dans l'analyse statique).

Plan de test

  • python -m pytest : 538 réussis, 7 ignorés (DLL absentes ou cas hors Windows)
  • python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools
  • cmake --build runtime/build --config Release
  • cargo build --release --manifest-path rust/Cargo.toml
  • python tools/build_tombox.py (1 min 15 s à froid)

🤖 Generated with Claude Code

https://claude.ai/code/session_01LwHrL5Lxc1rum25b6tnpo8

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:6567050940 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/109). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-23T19:23:09Z. --- ## Résumé Le mode natif utilise désormais par défaut les DLL console de TomBox (sous-module `third_party/tombox`, compilé depuis son dépôt public, rien de copié). Le proxy D3D12 Xbox (`D3D12XboxCreateDevice`, absent de notre `d3d12_xs`) vient de TomBox : on ne réécrit pas ce qui existe déjà. ## Ordre de chargement | DLL | Servie par défaut | Pourquoi | | --- | --- | --- | | `d3d12_xs` | TomBox | 64 exports contre 5 ; le device proxy manque chez nous | | `xmem` | TomBox | 40 exports contre 16 ; W1 vérifié (`XMemVirtualAlloc` avec `0x20402000` non NULL) | | `XCRDAPI` | TomBox | 138 exports contre 1 ; `DStorageGetFactory` écrit une fabrique (W5) | | `d3d12_x`, `xaudio2_9`, `xapu`, `xg_xs`, `xgs12` | TomBox | nous n'en avons aucune | | `xgameruntime`, `kernelx`, `anyxboxx_tls` | AnyXboxX | TomBox n'en a pas | Sans DLL compilées, le runtime sert les nôtres et écrit dans le journal la commande à lancer. `ANYXBOXX_TOMBOX_DIR` remplace le dossier par défaut `runtime/build/tombox`. ## Changements - `tools/build_tombox.py` : sans argument, compile la liste complète et copie les DLL dans `runtime/build/tombox`. - `PrototypeScarlett/emu/tombox_paths.py` : constantes partagées (dossier, variable, DLL préférées). - `runtime.py`, `translation.py`, `runtime/launcher/launcher.cpp` : même règle de dossier et mêmes DLL préférées. - CI : l'étape TomBox appelle `python tools/build_tombox.py` (même liste, plus xcrdapi). - Tests : résolution de l'ordre de chargement, installation des DLL, et trois tests natifs (`D3D12XboxCreateDevice`, W1, W5) sans variable d'environnement. Les autres tests du runtime pointent un dossier TomBox vide pour rester sur nos DLL. - Documentation : W5 résolu dans `docs/research/first-boot-1021.md` et `docs/fr/recherche/premier-demarrage-1021.md`, commande de construction dans `AGENTS.md`. Compteur de tests des 8 README : 545. ## Ce qui manque en amont (non modifié dans le sous-module) - TomBox n'exporte pas `XMemGetAllocationHooks` (exporté par notre `xmem`, sans import constaté dans l'analyse statique). ## Plan de test - [x] `python -m pytest` : 538 réussis, 7 ignorés (DLL absentes ou cas hors Windows) - [x] `python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools` - [x] `cmake --build runtime/build --config Release` - [x] `cargo build --release --manifest-path rust/Cargo.toml` - [x] `python tools/build_tombox.py` (1 min 15 s à froid) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01LwHrL5Lxc1rum25b6tnpo8
chatgpt-codex-connector[bot] commented 2026-11-23 19:23:16 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-23T19:23:16Z.


Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-23T19:23:14.223962Z
We couldn’t complete this review. Comment @codex review to try again.
acec03b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7111531690 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/109#issuecomment-7111531690). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-23T19:23:16Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"acec03b850fcc03d3cdab05ac2d95040c28b3362","has_any_findings":true,"has_unresolved_findings":true,"status":"failed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ❌ Failed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ❌ **Failed** <relative-time datetime="2026-11-23T19:23:14.223962Z">2026-11-23T19:23:14.223962Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `acec03b` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
chatgpt-codex-connector[bot] commented 2026-11-23 19:23:18 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-23T19:23:18Z.


You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7111532386 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/109#issuecomment-7111532386). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-23T19:23:18Z. --- You have reached your Codex usage limits for code reviews. You can see your limits in the [Codex usage dashboard](https://chatgpt.com/codex/cloud/settings/usage). To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your [settings](https://chatgpt.com/settings/code-review).
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
LooperSalty/AnyXboxX!109
No description provided.