Rename project and native applications to BetterXen

Update active repository links and coordination settings while retaining upstream history, notices, legacy library names and guest interfaces. Document the independent-copy migration and its limits.

Signed-off-by: Arths17 <Atharvranjan8@gmail.com>
This commit is contained in:
atharvranjan committed 2026-11-24 20:51:08 -06:00
1 parent 5442503d57
commit bfe0bbfaf7
31 files changed
+130 -104

No files matched your search

+5 -6
View File
@@ -1,9 +1,8 @@
{ {
"lease_hours": 168, "lease_hours": 168,
"upstream": "ranveersoni98/Xenora", "upstream": "MacosPorters/betterxen",
"maintainers": ["ranveersoni98"], "maintainers": [
"contributors": { "Arths17"
"ranveersoni98": ["cpu", "shared", "qa"], ],
"elforeign": ["gpu", "shared", "qa"] "contributors": {}
}
} }
+2 -2
View File
@@ -72,8 +72,8 @@ jobs:
LC_ALL=C PYTHONCOERCECLOCALE=0 PYTHONUTF8=0 scripts/audit/claims.sh LC_ALL=C PYTHONCOERCECLOCALE=0 PYTHONUTF8=0 scripts/audit/claims.sh
- name: Inspect native CLI - name: Inspect native CLI
run: | run: |
cargo build --locked -p xenora cargo build --locked -p betterxen
binary=target/aarch64-apple-darwin/debug/xenora binary=target/aarch64-apple-darwin/debug/betterxen
file "$binary" file "$binary"
test "$(lipo -archs "$binary")" = arm64 test "$(lipo -archs "$binary")" = arm64
otool -L "$binary" otool -L "$binary"
+5 -5
View File
@@ -1,4 +1,4 @@
# Xenora engineering rules # BetterXen engineering rules
### Native Apple Silicon ### Native Apple Silicon
@@ -7,7 +7,7 @@ Never introduce Rosetta 2, x86-64 host executables, MoltenVK, Vulkan runtime dep
- SPIR-V is permitted as a compiler intermediate representation. It does not justify a Vulkan runtime. - SPIR-V is permitted as a compiler intermediate representation. It does not justify a Vulkan runtime.
- All host executables and native dependencies must support ARM64. Verify with file, lipo -archs and otool -L. - All host executables and native dependencies must support ARM64. Verify with file, lipo -archs and otool -L.
- Never run Intel binaries through Rosetta, even temporarily. Never add a dependency that requires Rosetta to build or run. If a dependency cannot run natively, find an alternative or document the limitation. - Never run Intel binaries through Rosetta, even temporarily. Never add a dependency that requires Rosetta to build or run. If a dependency cannot run natively, find an alternative or document the limitation.
- The guest architecture being decoded may be x86-64, but Xenora itself runs natively on ARM64. - The guest architecture being decoded may be x86-64, but BetterXen itself runs natively on ARM64.
- Support M1 through M5 and future generations through runtime capability detection. Do not assume all Apple GPUs share capabilities. - Support M1 through M5 and future generations through runtime capability detection. Do not assume all Apple GPUs share capabilities.
- Use aarch64-apple-darwin as the Rust target. - Use aarch64-apple-darwin as the Rust target.
@@ -20,7 +20,7 @@ Never introduce Rosetta 2, x86-64 host executables, MoltenVK, Vulkan runtime dep
- Never replace GPU tests with mocks and then claim GPU support. - Never replace GPU tests with mocks and then claim GPU support.
- Unknown information is classified as unknown and becomes a documented research task. - Unknown information is classified as unknown and becomes a documented research task.
- Every hardware claim carries an evidence class (section 9). Never present a lower-class claim as if it were a higher-class one. - Every hardware claim carries an evidence class (section 9). Never present a lower-class claim as if it were a higher-class one.
- Never claim "verified on Xbox hardware". Xenora has no Xbox hardware access. Agreement with a spec-derived reference is not agreement with Xbox hardware, and docs must say so. - Never claim "verified on Xbox hardware". BetterXen has no Xbox hardware access. Agreement with a spec-derived reference is not agreement with Xbox hardware, and docs must say so.
- Do not hide errors behind fallbacks. Do not translate unsupported instructions into silent no-ops. Do not weaken or delete tests to make them pass. Do not change mutation counting, tolerances or gate definitions to improve a score. - Do not hide errors behind fallbacks. Do not translate unsupported instructions into silent no-ops. Do not weaken or delete tests to make them pass. Do not change mutation counting, tolerances or gate definitions to improve a score.
### Independence of verification ### Independence of verification
@@ -32,9 +32,9 @@ Never introduce Rosetta 2, x86-64 host executables, MoltenVK, Vulkan runtime dep
- Use only publicly accessible documentation and authorized materials. Never obtain or use leaked SDKs, confidential Xbox documentation, restricted console tools, firmware, encryption keys, or proprietary game binaries and shader collections. Do not attempt to bypass documentation access restrictions. - Use only publicly accessible documentation and authorized materials. Never obtain or use leaked SDKs, confidential Xbox documentation, restricted console tools, firmware, encryption keys, or proprietary game binaries and shader collections. Do not attempt to bypass documentation access restrictions.
- Contributors who have seen leaked or confidential Xbox materials must not contribute. State this in CONTRIBUTING.md and require a DCO sign-off (Signed-off-by) on contributions. - Contributors who have seen leaked or confidential Xbox materials must not contribute. State this in CONTRIBUTING.md and require a DCO sign-off (Signed-off-by) on contributions.
- Include a plain statement in docs/legal.md: Xenora does not circumvent console security or DRM, does not load encrypted or protected content, and is a research project built from public documentation. Add a note that this is not legal advice and that contributors should know their local laws, including anti-circumvention provisions such as DMCA section 1201. - Include a plain statement in docs/legal.md: BetterXen does not circumvent console security or DRM, does not load encrypted or protected content, and is a research project built from public documentation. Add a note that this is not legal advice and that contributors should know their local laws, including anti-circumvention provisions such as DMCA section 1201.
- Before copying or adapting any upstream code: verify the exact license of that file (not just the repo), check GPL-3.0-or-later compatibility, preserve copyright notices, record source repository and exact commit, document modifications, include required attribution. Never remove upstream copyright notices. If licensing is uncertain, stop using that code until resolved. - Before copying or adapting any upstream code: verify the exact license of that file (not just the repo), check GPL-3.0-or-later compatibility, preserve copyright notices, record source repository and exact commit, document modifications, include required attribution. Never remove upstream copyright notices. If licensing is uncertain, stop using that code until resolved.
- Keep Xenora's emulator implementation original. Never copy, port, translate or adapt emulator source from Leonida, KyTx, AnyPS5 or similar projects. - Keep BetterXen's emulator implementation original. Never copy, port, translate or adapt emulator source from Leonida, KyTx, AnyPS5 or similar projects.
- Validate the technical compatibility and safety of user-provided files. Do not ask for ownership receipts, accounts or acquisition provenance as part of file loading. Contributor provenance and licensing obligations still apply. - Validate the technical compatibility and safety of user-provided files. Do not ask for ownership receipts, accounts or acquisition provenance as part of file loading. Contributor provenance and licensing obligations still apply.
- Never place restricted material in the repository or its Git history. - Never place restricted material in the repository or its Git history.
- Do not push, publish, or change remote visibility without explicit user authorization. Prepare locally and report readiness. - Do not push, publish, or change remote visibility without explicit user authorization. Prepare locally and report readiness.
+1
View File
@@ -10,6 +10,7 @@ Guest execution uses original, purpose-built test programs. Commercial Xbox game
remains unsupported. remains unsupported.
### Changed ### Changed
- Renamed the project branding and native app and primary CLI package/binary to BetterXen (`betterxen`), and updated active repository links to `MacosPorters/betterxen`. Legacy `xenora-*` library packages and synthetic guest ABI names remain for compatibility. Upstream licenses, notices and historical evidence are retained.
- Guest `strlen`, `strnlen`, `wcslen` and `wcsnlen` scan memory in 256-unit blocks, falling back to single units at mapping boundaries so faults still report the first inaccessible unit. On Apple M2 Pro the 63-byte `strlen` workload went from 1,990 ns to 223 ns per call (median of 10 batches, on a machine that was not idle). - Guest `strlen`, `strnlen`, `wcslen` and `wcsnlen` scan memory in 256-unit blocks, falling back to single units at mapping boundaries so faults still report the first inaccessible unit. On Apple M2 Pro the 63-byte `strlen` workload went from 1,990 ns to 223 ns per call (median of 10 batches, on a machine that was not idle).
- The native ARM64 DBT now runs the 32- and 64-bit register and immediate forms of ADC and SBB itself instead of falling back to the shared interpreter (#195). The guest CF is moved into the host carry before ADCS or SBCS, inverted for SBB because SBCS subtracts NOT C while SBB subtracts CF. Memory forms and 8- and 16-bit forms still use the shared semantics. `tests/x86_carry_chain.rs` runs 256-bit add and subtract chains of 64- and 32-bit limbs, in one block and split one block per limb, against widening `u128`/`i128` reference arithmetic in both engines, plus immediate 128-bit increments and decrements and the `sbb reg, reg` carry mask. Locally verified on Apple M5 only. - The native ARM64 DBT now runs the 32- and 64-bit register and immediate forms of ADC and SBB itself instead of falling back to the shared interpreter (#195). The guest CF is moved into the host carry before ADCS or SBCS, inverted for SBB because SBCS subtracts NOT C while SBB subtracts CF. Memory forms and 8- and 16-bit forms still use the shared semantics. `tests/x86_carry_chain.rs` runs 256-bit add and subtract chains of 64- and 32-bit limbs, in one block and split one block per limb, against widening `u128`/`i128` reference arithmetic in both engines, plus immediate 128-bit increments and decrements and the `sbb reg, reg` carry mask. Locally verified on Apple M5 only.
- Removed the temporary region-list allocation from each instruction-byte fetch while preserving lookup order, execute-permission checks and error behavior (part of #104). - Removed the temporary region-list allocation from each instruction-byte fetch while preserving lookup order, execute-permission checks and error behavior (part of #104).
+2 -2
View File
@@ -1,6 +1,6 @@
# Code of Conduct # Code of Conduct
Xenora welcomes contributors with different backgrounds and experience levels. Discussions should be about the technical work and conducted with respect. BetterXen welcomes contributors with different backgrounds and experience levels. Discussions should be about the technical work and conducted with respect.
## Expected behavior ## Expected behavior
@@ -19,4 +19,4 @@ If possible, use an available private contact channel for a repository maintaine
Maintainers may remove content, limit participation or block accounts when necessary to protect the community. Responses should be proportionate to the behavior and protect the privacy of affected people. Do not retaliate against anyone reporting a concern in good faith. Maintainers may remove content, limit participation or block accounts when necessary to protect the community. Responses should be proportionate to the behavior and protect the privacy of affected people. Do not retaliate against anyone reporting a concern in good faith.
This policy applies to repository issues, pull requests, discussions and other spaces officially managed by Xenora. This policy applies to repository issues, pull requests, discussions and other spaces officially managed by BetterXen.
+4 -4
View File
@@ -1,6 +1,6 @@
# Contributing to Xenora # Contributing to BetterXen
Xenora is an experimental Xbox Series X|S recompilation framework for Apple Silicon. Its graphics subsystem, XenoMetal, targets native Metal execution. Contributions should improve verified behavior rather than expand untested claims. BetterXen is an experimental Xbox Series X|S recompilation framework for Apple Silicon. Its graphics subsystem, XenoMetal, targets native Metal execution. Contributions should improve verified behavior rather than expand untested claims.
## Getting started ## Getting started
@@ -28,11 +28,11 @@ For a performance change, provide reproducible before-and-after results using eq
## Research and clean-room policy ## Research and clean-room policy
Use publicly accessible specifications and authorized materials only. Do not submit leaked SDKs, confidential documentation, firmware, keys, proprietary game binaries or unauthorized shader dumps. Under Xenora's clean-room policy, anyone who has accessed leaked or confidential Xbox materials must not contribute. Do not post details of restricted material in issues or PRs. Use publicly accessible specifications and authorized materials only. Do not submit leaked SDKs, confidential documentation, firmware, keys, proprietary game binaries or unauthorized shader dumps. Under BetterXen's clean-room policy, anyone who has accessed leaked or confidential Xbox materials must not contribute. Do not post details of restricted material in issues or PRs.
Distinguish desktop RDNA behavior from Xbox-specific behavior. Cite primary sources with exact applicable architectures and record uncertainties using the project's evidence classification when available. Tests on Apple GPUs do not establish verification on Xbox hardware. Distinguish desktop RDNA behavior from Xbox-specific behavior. Cite primary sources with exact applicable architectures and record uncertainties using the project's evidence classification when available. Tests on Apple GPUs do not establish verification on Xbox hardware.
Xenora implements its own Rust guest runtime, decoder, typed IR, shader BetterXen implements its own Rust guest runtime, decoder, typed IR, shader
compiler and native Metal backend from public technical specifications compiler and native Metal backend from public technical specifications
and independently derived tests. Contributions must not copy, port or and independently derived tests. Contributions must not copy, port or
adapt code, decoder tables, internal metadata or implementation adapt code, decoder tables, internal metadata or implementation
Generated
+1 -1
View File
@@ -150,7 +150,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
[[package]] [[package]]
name = "xenora" name = "betterxen"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"xenora-decoder", "xenora-decoder",
+21 -19
View File
@@ -1,23 +1,25 @@
# Xenora # BetterXen
BetterXen is an independent continuation copied from [XenoraOSS/Xenora](https://github.com/XenoraOSS/Xenora). The original Git history, licenses and contributor attribution are retained. See the [migration notes](docs/migration.md) for imported issue and pull-request history.
**Experimental Xbox Series X|S emulation research for Apple Silicon Macs.** **Experimental Xbox Series X|S emulation research for Apple Silicon Macs.**
Xenora is an open-source project written primarily in Rust that builds and verifies a native, bounded execution environment on Apple Silicon: an independent x86-64 guest path, original PE32+ loading, AMD RDNA 2 shader translation, and a native Apple Metal graphics backend. BetterXen is an open-source project written primarily in Rust that builds and verifies a native, bounded execution environment on Apple Silicon: an independent x86-64 guest path, original PE32+ loading, AMD RDNA 2 shader translation, and a native Apple Metal graphics backend.
**No Wine. No CrossOver. No Rosetta. No Vulkan runtime.** **No Wine. No CrossOver. No Rosetta. No Vulkan runtime.**
Xenora is still experimental. Verified work is restricted to independently authored synthetic programs and shaders; authentic Xbox executable loading, system-service compatibility and commercial game execution remain unsupported. See the [current limitations](#current-limitations). BetterXen is still experimental. Verified work is restricted to independently authored synthetic programs and shaders; authentic Xbox executable loading, system-service compatibility and commercial game execution remain unsupported. See the [current limitations](#current-limitations).
> [!CAUTION] > [!CAUTION]
> **Xenora strictly opposes piracy.** Xenora is an independent, clean-room, general-purpose emulation research project that neither distributes copyrighted game files nor supports unauthorized content, DRM circumvention, or leaked materials. Use only legally obtained software. Xenora is not affiliated with Microsoft or any other publisher or platform holder. > **BetterXen strictly opposes piracy.** BetterXen is an independent, clean-room, general-purpose emulation research project that neither distributes copyrighted game files nor supports unauthorized content, DRM circumvention, or leaked materials. Use only legally obtained software. BetterXen is not affiliated with Microsoft or any other publisher or platform holder.
[![Native Rust checks](https://github.com/ranveersoni98/Xenora/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/ranveersoni98/Xenora/actions/workflows/ci.yml) [![Native Rust checks](https://github.com/MacosPorters/betterxen/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MacosPorters/betterxen/actions/workflows/ci.yml)
--- ---
## What works today? ## What works today?
Xenora has progressed from executing individual x86-64 instructions to running original PE32+ guest programs that interact with translated GPU workloads on Apple Silicon. BetterXen has progressed from executing individual x86-64 instructions to running original PE32+ guest programs that interact with translated GPU workloads on Apple Silicon.
The latest verified milestones include **translated gfx1030 vertex and pixel shaders executing through native Apple Metal**, the native Metal **blend pass** (`NativeCompute::render_blend`) and **indexed triangle draws** (`NativeCompute::render_indexed`) into offscreen targets, with rendered pixels compared against independently calculated reference results. The latest verified milestones include **translated gfx1030 vertex and pixel shaders executing through native Apple Metal**, the native Metal **blend pass** (`NativeCompute::render_blend`) and **indexed triangle draws** (`NativeCompute::render_indexed`) into offscreen targets, with rendered pixels compared against independently calculated reference results.
@@ -57,7 +59,7 @@ All existing verification refers to independently authored synthetic programs an
## Native graphics translation ## Native graphics translation
Xenora's graphics pipeline translates a supported subset of AMD RDNA 2 instructions into Metal Shading Language. BetterXen's graphics pipeline translates a supported subset of AMD RDNA 2 instructions into Metal Shading Language.
The translation process is: The translation process is:
@@ -164,7 +166,7 @@ The resource system remains experimental. Native GPU work already in flight duri
## Texture support ## Texture support
Xenora includes original texture upload, readback and block-compression paths. BetterXen includes original texture upload, readback and block-compression paths.
Implemented and tested functionality includes: Implemented and tested functionality includes:
@@ -183,7 +185,7 @@ Xbox-specific texture layouts and additional compression formats require further
## Architecture ## Architecture
Xenora is organized around three connected subsystems: guest execution, shader translation and native GPU execution. BetterXen is organized around three connected subsystems: guest execution, shader translation and native GPU execution.
```mermaid ```mermaid
flowchart TD flowchart TD
@@ -230,7 +232,7 @@ flowchart TD
end end
``` ```
Xenora's host execution environment is native ARM64. The guest architecture being interpreted is x86-64. BetterXen's host execution environment is native ARM64. The guest architecture being interpreted is x86-64.
The native graphics pipeline runs translated vertex and pixel stages, the indexed-draw and blend passes and the depth pass into offscreen Metal targets, with GPU readback compared against independent CPU references. The native graphics pipeline runs translated vertex and pixel stages, the indexed-draw and blend passes and the depth pass into offscreen Metal targets, with GPU readback compared against independent CPU references.
@@ -242,7 +244,7 @@ See [Interface Contracts](docs/interfaces.md) for the documented execution and r
## Current limitations ## Current limitations
Xenora is an engineering research project, not a working commercial-game emulator. BetterXen is an engineering research project, not a working commercial-game emulator.
The following remain unsupported or incomplete: The following remain unsupported or incomplete:
@@ -257,13 +259,13 @@ The following remain unsupported or incomplete:
| Performance | Production-scale workloads, CPU/GPU profiling and optimized execution | | Performance | Production-scale workloads, CPU/GPU profiling and optimized execution |
| Game compatibility | No demonstrated execution of commercial Xbox titles | | Game compatibility | No demonstrated execution of commercial Xbox titles |
Xenora's current shader fixtures target a bounded subset of desktop gfx1030 behavior. This is not equivalent to complete Xbox Series GPU compatibility. BetterXen's current shader fixtures target a bounded subset of desktop gfx1030 behavior. This is not equivalent to complete Xbox Series GPU compatibility.
Progress is measured by reproducible tests rather than estimated game compatibility percentages. Progress is measured by reproducible tests rather than estimated game compatibility percentages.
--- ---
## Building Xenora ## Building BetterXen
### Requirements ### Requirements
@@ -278,15 +280,15 @@ The recorded Apple M5 environment uses Rust 1.100.0 and Xcode 27.2.
### Clone ### Clone
```sh ```sh
git clone https://github.com/ranveersoni98/Xenora.git git clone https://github.com/MacosPorters/betterxen.git
cd Xenora cd betterxen
``` ```
### Build ### Build
```sh ```sh
scripts/bootstrap.sh scripts/bootstrap.sh
cargo build --locked -p xenora cargo build --locked -p betterxen
``` ```
### Run core tests ### Run core tests
@@ -361,14 +363,14 @@ See the [roadmap table](#development-milestones) for proposed milestones, and th
### Contributors ### Contributors
[![Contributors](https://contrib.rocks/image?repo=ranveersoni98/Xenora)](https://github.com/ranveersoni98/Xenora/graphs/contributors) [![Contributors](https://contrib.rocks/image?repo=MacosPorters/betterxen)](https://github.com/MacosPorters/betterxen/graphs/contributors)
## License ## License
Xenora is licensed under the [GNU General Public License v3 or later](LICENSE). BetterXen is licensed under the [GNU General Public License v3 or later](LICENSE).
See [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) for third-party attribution and [docs/legal.md](docs/legal.md) for the project's research and legal boundaries. See [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) for third-party attribution and [docs/legal.md](docs/legal.md) for the project's research and legal boundaries.
Xenora is an independent open-source project and is not affiliated with Microsoft, Xbox, Rockstar Games or Apple. BetterXen is an independent open-source project and is not affiliated with Microsoft, Xbox, Rockstar Games or Apple.
--- ---
+2 -2
View File
@@ -2,13 +2,13 @@
## Scope ## Scope
Xenora is experimental and is not currently represented as a security-hardened runtime. Treat shaders, binary containers, caches and native library inputs as untrusted. Do not use it to process untrusted content in a sensitive environment. BetterXen is experimental and is not currently represented as a security-hardened runtime. Treat shaders, binary containers, caches and native library inputs as untrusted. Do not use it to process untrusted content in a sensitive environment.
The project does not promise a fixed security support window at this stage. Report issues against a specific revision, preferably reproduced on current `main` where safe. The project does not promise a fixed security support window at this stage. Report issues against a specific revision, preferably reproduced on current `main` where safe.
## Reporting vulnerabilities ## Reporting vulnerabilities
Use [GitHub private vulnerability reporting](https://github.com/ranveersoni98/Xenora/security/advisories/new), if enabled. If it is unavailable, request a private reporting channel without disclosing exploit details publicly. Do not open a public issue containing sensitive vulnerability details, credentials, or private data. Use [GitHub private vulnerability reporting](https://github.com/MacosPorters/betterxen/security/advisories/new), if enabled. If it is unavailable, request a private reporting channel without disclosing exploit details publicly. Do not open a public issue containing sensitive vulnerability details, credentials, or private data.
Include the affected commit, environment, affected component, expected and actual behavior, impact and a minimal, authorized reproduction. Use synthetic inputs wherever possible. Do not attach protected content, leaked SDK material or proprietary shaders. Include the affected commit, environment, affected component, expected and actual behavior, impact and a minimal, authorized reproduction. Use synthetic inputs wherever possible. Do not attach protected content, leaked SDK material or proprietary shaders.
+3 -3
View File
@@ -1,9 +1,9 @@
# Getting help # Getting help
Start with the [README](README.md) and the relevant documentation in the repository, if available. Xenora is an experimental research project, not a commercial game compatibility service. Start with the [README](README.md) and the relevant documentation in the repository, if available. BetterXen is an experimental research project, not a commercial game compatibility service.
- Use [GitHub Issues](https://github.com/ranveersoni98/Xenora/issues) for reproducible bugs, feature proposals, research findings and hardware verification reports. - Use [GitHub Issues](https://github.com/MacosPorters/betterxen/issues) for reproducible bugs, feature proposals, research findings and hardware verification reports.
- Use [GitHub Discussions](https://github.com/ranveersoni98/Xenora/discussions) for general questions if Discussions is enabled. Otherwise, search existing issues before filing a relevant question. - Use [GitHub Discussions](https://github.com/MacosPorters/betterxen/discussions) for general questions if Discussions is enabled. Otherwise, search existing issues before filing a relevant question.
- Follow [SECURITY.md](SECURITY.md) for security-sensitive reports. - Follow [SECURITY.md](SECURITY.md) for security-sensitive reports.
Include the exact revision, host architecture, macOS version, relevant tool versions, steps to reproduce and sanitized output. Do not share personal paths, private account information, protected game assets, credentials or confidential material. If the reported feature is not yet implemented, identify it as a request rather than a regression. Include the exact revision, host architecture, macOS version, relevant tool versions, steps to reproduce and sanitized output. Do not share personal paths, private account information, protected game assets, credentials or confidential material. If the reported feature is not yet implemented, identify it as a request rather than a regression.
+2 -2
View File
@@ -4,10 +4,10 @@
import PackageDescription import PackageDescription
let package = Package( let package = Package(
name: "Xenora", name: "BetterXen",
platforms: [.macOS(.v14)], platforms: [.macOS(.v14)],
targets: [ targets: [
.systemLibrary(name: "CXenora", path: "Sources/CXenora"), .systemLibrary(name: "CXenora", path: "Sources/CXenora"),
.executableTarget(name: "Xenora", dependencies: ["CXenora"]), .executableTarget(name: "BetterXen", dependencies: ["CXenora"], path: "Sources/Xenora"),
] ]
) )
+3 -3
View File
@@ -834,13 +834,13 @@ struct ContentView: View {
} }
} }
struct XenoraApp: App { struct BetterXenApp: App {
@NSApplicationDelegateAdaptor(AppDelegate.self) var delegate @NSApplicationDelegateAdaptor(AppDelegate.self) var delegate
let model = FrameModel() let model = FrameModel()
let loop = FrameLoopModel() let loop = FrameLoopModel()
var body: some Scene { var body: some Scene {
WindowGroup("Xenora") { ContentView(model: model, loop: loop) } WindowGroup("BetterXen") { ContentView(model: model, loop: loop) }
} }
} }
@@ -1015,4 +1015,4 @@ if CommandLine.arguments.contains("--smoke") {
print(probe.summary) print(probe.summary)
exit(probe.connected ? 0 : 1) exit(probe.connected ? 0 : 1)
} }
XenoraApp.main() BetterXenApp.main()
+1 -1
View File
@@ -1,5 +1,5 @@
[package] [package]
name = "xenora" name = "betterxen"
version.workspace = true version.workspace = true
edition.workspace = true edition.workspace = true
license.workspace = true license.workspace = true
+18 -17
View File
@@ -13,7 +13,7 @@ fn main() -> ExitCode {
match std::env::args().nth(1).as_deref() { match std::env::args().nth(1).as_deref() {
Some("info") => { Some("info") => {
println!( println!(
"Xenora {} ({})", "BetterXen {} ({})",
env!("CARGO_PKG_VERSION"), env!("CARGO_PKG_VERSION"),
std::env::consts::ARCH std::env::consts::ARCH
); );
@@ -21,7 +21,7 @@ fn main() -> ExitCode {
} }
Some("inspect") => { Some("inspect") => {
let Some(file_path) = std::env::args().nth(2) else { let Some(file_path) = std::env::args().nth(2) else {
eprintln!("usage: xenora inspect <path-to-pe-binary>"); eprintln!("usage: betterxen inspect <path-to-pe-binary>");
return ExitCode::from(2); return ExitCode::from(2);
}; };
match xenora_loader::triage_file(&file_path) { match xenora_loader::triage_file(&file_path) {
@@ -90,7 +90,7 @@ fn main() -> ExitCode {
let Some(pe) = pe_path else { let Some(pe) = pe_path else {
eprintln!( eprintln!(
"usage: xenora probe --pe <path> [--mode <static>] [--report <output-dir>]" "usage: betterxen probe --pe <path> [--mode <static>] [--report <output-dir>]"
); );
return ExitCode::from(2); return ExitCode::from(2);
}; };
@@ -111,7 +111,7 @@ fn main() -> ExitCode {
let config = xenora_loader::ProbeConfig::default(); let config = xenora_loader::ProbeConfig::default();
match xenora_loader::run_probe_and_export(&bytes, &report_dir, &config) { match xenora_loader::run_probe_and_export(&bytes, &report_dir, &config) {
Ok(report) => { Ok(report) => {
println!("Xenora static PE probe complete."); println!("BetterXen static PE probe complete.");
println!("Artifacts exported to: {report_dir}"); println!("Artifacts exported to: {report_dir}");
println!("Sections: {}", report.parsed.sections.len()); println!("Sections: {}", report.parsed.sections.len());
println!("Relocations: {}", report.relocations.total_entries); println!("Relocations: {}", report.relocations.total_entries);
@@ -137,19 +137,19 @@ fn main() -> ExitCode {
} }
} }
_ => { _ => {
eprintln!("usage: xenora <info|demo|inspect|probe|run|imports|shaders>"); eprintln!("usage: betterxen <info|demo|inspect|probe|run|imports|shaders>");
ExitCode::from(2) ExitCode::from(2)
} }
} }
} }
/// `xenora imports sync [--report <dir>] [--check]` /// `betterxen imports sync [--report <dir>] [--check]`
/// `xenora imports generate --pe <path> [--out <dir>]` /// `betterxen imports generate --pe <path> [--out <dir>]`
/// `xenora imports metadata sync [--out <dir>]` /// `betterxen imports metadata sync [--out <dir>]`
/// `xenora imports verify` /// `betterxen imports verify`
fn imports_command(args: Vec<String>) -> ExitCode { fn imports_command(args: Vec<String>) -> ExitCode {
if args.is_empty() { if args.is_empty() {
eprintln!("usage: xenora imports <sync|generate|metadata|verify> [options]"); eprintln!("usage: betterxen imports <sync|generate|metadata|verify> [options]");
return ExitCode::from(2); return ExitCode::from(2);
} }
@@ -160,7 +160,7 @@ fn imports_command(args: Vec<String>) -> ExitCode {
"verify" => run_imports_verify_cli(&args[1..]), "verify" => run_imports_verify_cli(&args[1..]),
other => { other => {
eprintln!("unknown imports subcommand: {other}"); eprintln!("unknown imports subcommand: {other}");
eprintln!("usage: xenora imports <sync|generate|metadata|verify> [options]"); eprintln!("usage: betterxen imports <sync|generate|metadata|verify> [options]");
ExitCode::from(2) ExitCode::from(2)
} }
} }
@@ -331,7 +331,7 @@ fn run_imports_generate_cli(args: &[String]) -> ExitCode {
} }
} else { } else {
eprintln!( eprintln!(
"usage: xenora imports generate <--pe <executable> | --csv <missing_imports.csv>> [--out <dir>]" "usage: betterxen imports generate <--pe <executable> | --csv <missing_imports.csv>> [--out <dir>]"
); );
return ExitCode::from(2); return ExitCode::from(2);
}; };
@@ -437,9 +437,10 @@ fn run_imports_sync(
let imports_csv_path = std::path::Path::new(report_dir).join("imports.csv"); let imports_csv_path = std::path::Path::new(report_dir).join("imports.csv");
if !imports_csv_path.exists() { if !imports_csv_path.exists() {
return Err( return Err(format!(
format!("imports.csv not found in '{report_dir}'. Run `xenora probe` first.").into(), "imports.csv not found in '{report_dir}'. Run `betterxen probe` first."
); )
.into());
} }
// Build the standard registry to get current implementation state. // Build the standard registry to get current implementation state.
@@ -525,11 +526,11 @@ fn run_imports_sync(
// Build the refreshed import_backlog.md. // Build the refreshed import_backlog.md.
let mut md = String::new(); let mut md = String::new();
let _ = writeln!(md, "# Xenora import compatibility backlog"); let _ = writeln!(md, "# BetterXen import compatibility backlog");
let _ = writeln!(md); let _ = writeln!(md);
let _ = writeln!( let _ = writeln!(
md, md,
"Generated by `xenora imports sync`. Do not edit manually." "Generated by `betterxen imports sync`. Do not edit manually."
); );
let _ = writeln!( let _ = writeln!(
md, md,
+1 -1
View File
@@ -27,7 +27,7 @@ const TICKET: u64 = 17;
const DRAW_RESULT: u64 = 0x42; const DRAW_RESULT: u64 = 0x42;
const EXTENT: [usize; 2] = [4, 3]; const EXTENT: [usize; 2] = [4, 3];
const EXPECTED_PIXEL: [u8; 4] = [255, 0, 0, 255]; const EXPECTED_PIXEL: [u8; 4] = [255, 0, 0, 255];
const USAGE: &str = "usage: xenora run --pe <trusted-fixture> --experimental [--trace] [--metal-hud] [--max-steps <1..=10000>]"; const USAGE: &str = "usage: betterxen run --pe <trusted-fixture> --experimental [--trace] [--metal-hud] [--max-steps <1..=10000>]";
struct Options { struct Options {
path: PathBuf, path: PathBuf,
+3 -3
View File
@@ -1,11 +1,11 @@
//! `xenora shaders`: instruction inventory and stream inspection. //! `betterxen shaders`: instruction inventory and stream inspection.
use std::process::ExitCode; use std::process::ExitCode;
use xenora_decoder::{Architecture, SEMANTIC_FORMS, decode_at}; use xenora_decoder::{Architecture, SEMANTIC_FORMS, decode_at};
use xenora_isa::meta::{self, EncodingFamily, FORMS, identify}; use xenora_isa::meta::{self, EncodingFamily, FORMS, identify};
const USAGE: &str = "usage: xenora shaders <coverage [--json] | inspect <gfx1030.bin>>"; const USAGE: &str = "usage: betterxen shaders <coverage [--json] | inspect <gfx1030.bin>>";
pub fn command(args: &[String]) -> ExitCode { pub fn command(args: &[String]) -> ExitCode {
match args.first().map(String::as_str) { match args.first().map(String::as_str) {
@@ -109,7 +109,7 @@ fn inspect(path: &str) -> ExitCode {
ExitCode::SUCCESS ExitCode::SUCCESS
} }
/// The printed rows of `xenora shaders inspect`, the number of rows that do /// The printed rows of `betterxen shaders inspect`, the number of rows that do
/// not decode into executable instructions and the identification failure /// not decode into executable instructions and the identification failure
/// that ended the stream early, if any. /// that ended the stream early, if any.
struct Listing { struct Listing {
+2 -2
View File
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
//! Default report folder of `xenora probe` and `xenora imports sync`. //! Default report folder of `betterxen probe` and `betterxen imports sync`.
use std::process::Command; use std::process::Command;
@@ -13,7 +13,7 @@ fn probe_and_sync_use_the_same_default_folder() {
let folder = std::env::temp_dir().join(format!("xenora-default-{}", std::process::id())); let folder = std::env::temp_dir().join(format!("xenora-default-{}", std::process::id()));
std::fs::create_dir(&folder).unwrap(); std::fs::create_dir(&folder).unwrap();
for arguments in [&["probe", "--pe", fixture][..], &["imports", "sync"]] { for arguments in [&["probe", "--pe", fixture][..], &["imports", "sync"]] {
let status = Command::new(env!("CARGO_BIN_EXE_xenora")) let status = Command::new(env!("CARGO_BIN_EXE_betterxen"))
.args(arguments) .args(arguments)
.current_dir(&folder) .current_dir(&folder)
.status() .status()
+5 -5
View File
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
//! `xenora imports sync` over a probe report that lists delay-loaded imports. //! `betterxen imports sync` over a probe report that lists delay-loaded imports.
use std::process::Command; use std::process::Command;
@@ -13,8 +13,8 @@ fn backlog_leaves_out_delay_loaded_imports() {
"/../../fixtures/pe/delay-imports.exe" "/../../fixtures/pe/delay-imports.exe"
); );
let report = std::env::temp_dir().join(format!("xenora-sync-delayed-{}", std::process::id())); let report = std::env::temp_dir().join(format!("xenora-sync-delayed-{}", std::process::id()));
let xenora = |arguments: &[&str]| { let betterxen = |arguments: &[&str]| {
let status = Command::new(env!("CARGO_BIN_EXE_xenora")) let status = Command::new(env!("CARGO_BIN_EXE_betterxen"))
.args(arguments) .args(arguments)
.arg("--report") .arg("--report")
.arg(&report) .arg(&report)
@@ -22,8 +22,8 @@ fn backlog_leaves_out_delay_loaded_imports() {
.unwrap(); .unwrap();
assert!(status.success(), "{arguments:?}"); assert!(status.success(), "{arguments:?}");
}; };
xenora(&["probe", "--pe", fixture]); betterxen(&["probe", "--pe", fixture]);
xenora(&["imports", "sync"]); betterxen(&["imports", "sync"]);
let listed = std::fs::read_to_string(report.join("imports.csv")).unwrap(); let listed = std::fs::read_to_string(report.join("imports.csv")).unwrap();
let backlog = std::fs::read_to_string(report.join("import_backlog.md")).unwrap(); let backlog = std::fs::read_to_string(report.join("import_backlog.md")).unwrap();
std::fs::remove_dir_all(report).unwrap(); std::fs::remove_dir_all(report).unwrap();
+4 -2
View File
@@ -1,4 +1,4 @@
# Xenora documentation # BetterXen documentation
## Getting started ## Getting started
@@ -63,7 +63,9 @@ either path. The [changelog](../CHANGELOG.md) records notable changes.
- [Legal scope](legal.md), [dependency licensing](licenses.md), and [third-party notices](../THIRD_PARTY_NOTICES.md) — Input policy, attribution, and redistribution findings. - [Legal scope](legal.md), [dependency licensing](licenses.md), and [third-party notices](../THIRD_PARTY_NOTICES.md) — Input policy, attribution, and redistribution findings.
- [Contribution guidelines](../CONTRIBUTING.md) — Original authorship, Developer Certificate of Origin sign-off, and evidence requirements. - [Contribution guidelines](../CONTRIBUTING.md) — Original authorship, Developer Certificate of Origin sign-off, and evidence requirements.
- [Agent task queue](coordination/agent-tasks.md) — Areas, claiming, leases, upstream sync, verification and the security model for parallel contributors and coding agents. - [Agent task queue](coordination/agent-tasks.md) — Areas, claiming, leases, upstream sync, verification and the security model for parallel contributors and coding agents.
- [CPU/runtime expansion campaign ledger](coordination/cpu-campaign-ledger.md) — Progress ledger for the Xenora native CPU and runtime compatibility campaign: starting/current commits, completed batches, new forms, verification evidence and the next implementation target. - [CPU/runtime expansion campaign ledger](coordination/cpu-campaign-ledger.md) — Progress ledger for the BetterXen native CPU and runtime compatibility campaign: starting/current commits, completed batches, new forms, verification evidence and the next implementation target.
- [Infrastructure QA ownership](coordination/infrastructure-qa-ownership.md) — Non-overlapping paths for infrastructure and QA tooling. - [Infrastructure QA ownership](coordination/infrastructure-qa-ownership.md) — Non-overlapping paths for infrastructure and QA tooling.
- [Agent queue smoke evidence](coordination/agent-queue-smoke.md) — Live Actions results from the disposable smoke repository. - [Agent queue smoke evidence](coordination/agent-queue-smoke.md) — Live Actions results from the disposable smoke repository.
- [Infrastructure QA tooling](testing/infrastructure/README.md) — Advisory orchestration, PR validation, benchmark analysis and release checks. - [Infrastructure QA tooling](testing/infrastructure/README.md) — Advisory orchestration, PR validation, benchmark analysis and release checks.
- [Migration to BetterXen](migration.md): source attribution, imported history and compatibility names.
+1 -1
View File
@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="530" height="185" viewBox="0 0 530 185" role="img" aria-labelledby="title description"> <svg xmlns="http://www.w3.org/2000/svg" width="530" height="185" viewBox="0 0 530 185" role="img" aria-labelledby="title description">
<title id="title">Xenora · recorded progress</title> <title id="title">BetterXen · recorded progress</title>
<desc id="description">Decoded gfx1030 forms: 185 of 185. Accepted Metal forms · Apple M5: 18 of 185. Accepted guest milestones · X1–X4: 4 of 4</desc> <desc id="description">Decoded gfx1030 forms: 185 of 185. Accepted Metal forms · Apple M5: 18 of 185. Accepted guest milestones · X1–X4: 4 of 4</desc>
<rect x="1" y="1" width="528" height="183" rx="10" fill="#18212a" stroke="#516171"/> <rect x="1" y="1" width="528" height="183" rx="10" fill="#18212a" stroke="#516171"/>
<g font-family="system-ui,sans-serif" fill="#eaf0f5"> <g font-family="system-ui,sans-serif" fill="#eaf0f5">

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

+1 -1
View File
@@ -95,7 +95,7 @@ CPUID (`0F A2`) returns a fixed table that never reads the host. It describes a
A feature bit is set only when every instruction of that feature is implemented. That is stricter than "some of it works", and it has consequences: A feature bit is set only when every instruction of that feature is implemented. That is stricter than "some of it works", and it has consequences:
- SSE and SSE2 are not reported, although most of their instructions exist, because parts are still rejected: RSQRTPS and MASKMOVDQU, for example. BMI1 is not reported although TZCNT exists, because ANDN does not. The x87 FPU, MMX, FXSAVE, CMPXCHG8B, the time-stamp counter, LAHF and SYSRET are absent too. - SSE and SSE2 are not reported, although most of their instructions exist, because parts are still rejected: RSQRTPS and MASKMOVDQU, for example. BMI1 is not reported although TZCNT exists, because ANDN does not. The x87 FPU, MMX, FXSAVE, CMPXCHG8B, the time-stamp counter, LAHF and SYSRET are absent too.
- The table is therefore truthful about Xenora, not plausible as hardware: every real 64-bit processor reports the FPU and SSE2. A guest that tests a bit before using a feature avoids it; a guest that assumes SSE2 because it runs in 64-bit mode still gets every form that exists and an illegal-instruction exit for one that does not. - The table is therefore truthful about BetterXen, not plausible as hardware: every real 64-bit processor reports the FPU and SSE2. A guest that tests a bit before using a feature avoids it; a guest that assumes SSE2 because it runs in 64-bit mode still gets every form that exists and an illegal-instruction exit for one that does not.
- A leaf that is not listed returns zeros, whatever the subleaf. Intel processors answer a leaf above the highest basic one with that leaf's data instead; software is expected to read the highest leaf first. - A leaf that is not listed returns zeros, whatever the subleaf. Intel processors answer a leaf above the highest basic one with that leaf's data instead; software is expected to read the highest leaf first.
`xenora_loader::cpu::cpuid` is the one copy of the table. A runtime service that reports processor features should read it rather than keep its own list. `xenora_loader::cpu::cpuid` is the one copy of the table. A runtime service that reports processor features should read it rather than keep its own list.
+5 -5
View File
@@ -104,7 +104,7 @@ section table and data directories; it cannot write or execute them.
When startup loads an image away from its preferred base, it writes the load When startup loads an image away from its preferred base, it writes the load
base into the mapped optional header's `ImageBase` field after the relocations base into the mapped optional header's `ImageBase` field after the relocations
have been applied, so an entry aimed at that field cannot leave any other value have been applied, so an entry aimed at that field cannot leave any other value
there. This is Xenora's policy: the PE specification defines `ImageBase` as the there. This is BetterXen's policy: the PE specification defines `ImageBase` as the
preferred base, and the behaviour has not been compared with Windows. preferred base, and the behaviour has not been compared with Windows.
The load is refused with `PeError::InvalidHeaderSize` when `SizeOfHeaders` is The load is refused with `PeError::InvalidHeaderSize` when `SizeOfHeaders` is
@@ -117,9 +117,9 @@ pages count toward the 256 MiB mapping budget of one image, which is checked
before anything is mapped. `ParsedPe::parse` does not make these checks, so before anything is mapped. `ParsedPe::parse` does not make these checks, so
static inspection of a file is unchanged. static inspection of a file is unchanged.
`xenora probe --mode static` inventories ordinary and delay-loaded PE imports `betterxen probe --mode static` inventories ordinary and delay-loaded PE imports
without guest execution. Without `--report` it writes to `diagnostics/probe`, without guest execution. Without `--report` it writes to `diagnostics/probe`,
where `xenora imports sync` also looks. `missing_imports.csv` lists unresolved ordinary keys where `betterxen imports sync` also looks. `missing_imports.csv` lists unresolved ordinary keys
with their import address table relative virtual addresses. The full inventory, with their import address table relative virtual addresses. The full inventory,
`imports.csv`, marks each entry `ordinary` or `delayed` in its `import_table` `imports.csv`, marks each entry `ordinary` or `delayed` in its `import_table`
column and records whether each key is registered, its implementation column and records whether each key is registered, its implementation
@@ -138,7 +138,7 @@ ordinal, and slot in the delay import address table, after the ordinary rows.
Binding does not resolve them: the PE format leaves that to a delay-load helper Binding does not resolve them: the PE format leaves that to a delay-load helper
inside the image. The totals above and `missing_imports.csv` therefore cover inside the image. The totals above and `missing_imports.csv` therefore cover
ordinary imports only, and the JSON report counts delayed slots and DLLs in ordinary imports only, and the JSON report counts delayed slots and DLLs in
`delayed_imports` and `delayed_imported_dlls_count`. `xenora imports sync` `delayed_imports` and `delayed_imported_dlls_count`. `betterxen imports sync`
leaves delayed rows out of its backlog for the same reason. leaves delayed rows out of its backlog for the same reason.
The probe reads only descriptors that lie wholly inside the directory's The probe reads only descriptors that lie wholly inside the directory's
@@ -475,7 +475,7 @@ four row-major Block Compression 1 (BC1) blocks, including slots beyond the
logical edge. The reader validates the full byte length, rejects padding logical edge. The reader validates the full byte length, rejects padding
coordinates and can decode each logical block to sixteen RGBA8 texels. coordinates and can decode each logical block to sixteen RGBA8 texels.
The decoder uses bit replication to expand 5:6:5 endpoints and rounds integer The decoder uses bit replication to expand 5:6:5 endpoints and rounds integer
palette interpolation down. This layout is specific to Xenora fixtures. The block encoding follows the palette interpolation down. This layout is specific to BetterXen fixtures. The block encoding follows the
[Direct3D BC1 description](https://learn.microsoft.com/en-us/windows/win32/direct3d10/d3d10-graphics-programming-guide-resources-block-compression). [Direct3D BC1 description](https://learn.microsoft.com/en-us/windows/win32/direct3d10/d3d10-graphics-programming-guide-resources-block-compression).
`TiledBc1::linearize` strips the tile padding from one selected subresource `TiledBc1::linearize` strips the tile padding from one selected subresource
+3 -3
View File
@@ -1,14 +1,14 @@
# Clean-room scope # Clean-room scope
Xenora does not circumvent console security or DRM, does not load encrypted or protected content, and is a research project built from public documentation. BetterXen does not circumvent console security or DRM, does not load encrypted or protected content, and is a research project built from public documentation.
## User-provided game files ## User-provided game files
Users obtain and supply their own files. Xenora evaluates file structure, Users obtain and supply their own files. BetterXen evaluates file structure,
supported features, compatibility and safe execution. Game import does supported features, compatibility and safe execution. Game import does
not check ownership, request receipts or account verification, investigate not check ownership, request receipts or account verification, investigate
acquisition, or block a technically supported file solely because its acquisition, or block a technically supported file solely because its
origin is unknown. Xenora does not distribute or host commercial game origin is unknown. BetterXen does not distribute or host commercial game
files or provide acquisition services. files or provide acquisition services.
## Project contributions and testing ## Project contributions and testing
+21
View File
@@ -0,0 +1,21 @@
# Migration to BetterXen
BetterXen is an independent copy of [XenoraOSS/Xenora](https://github.com/XenoraOSS/Xenora), hosted at [MacosPorters/betterxen](https://github.com/MacosPorters/betterxen). This is a copy, not a GitHub ownership transfer. The source repository remains unchanged.
## Preserved history
Original commits and authorship are retained. Available pull-request head and merge refs are preserved as `archive/pull/<original-number>/head` and `archive/pull/<original-number>/merge` branches. Not every historical PR ref is still exposed by the source; the metadata archive also includes patches obtained through GitHub's API.
Issues are recreated with original-source links, author attribution and archived comment text. Original timestamps and authors cannot be assigned to recreated GitHub records. Destination issue and pull-request numbers differ. Historical `#number` references in upstream records refer to the original repository; consult the source link and number maps in the migration archive.
Open PRs are recreated against copied branches. Closed and merged PRs are retained as historical archive records, including descriptions, comments, reviews, changed-file metadata, commits and patches; they are not represented as newly merged work. Recreated PRs do not inherit approvals or check results.
The migration archive is attached to the repository's migration release. It includes JSON metadata, a readable issue/PR index, patches and original-to-destination number maps. It records the public state observed during migration, not an atomic snapshot. Linked external attachments and unavailable private data are not embedded unless explicitly listed in its manifest.
Stars, watchers, source organization membership, private settings, secrets, deploy keys, inaccessible project data, and Actions run history are not copied. The source wiki could not be cloned (GitHub reported that it was not found). No source releases were present during inventory. The one public discussion is archived and recreated with attribution. The destination was private at the initial inventory and later reported public visibility. The migration commands did not request a visibility change.
## Names and compatibility
The primary executable and Cargo package are `betterxen`. Existing `xenora-*` library package names, C interface symbols, the synthetic CPUID vendor string, environment-variable names and synthetic guest import names are retained for compatibility. Copyright notices, licenses, historical review evidence and upstream attribution retain their original names. Prior hardware and verification claims describe upstream evidence and do not certify this renamed copy.
The destination coordination configuration names `Arths17` as its maintainer. Source-specific contributor routing is cleared; destination maintainers can configure it for their own team.
+1 -1
View File
@@ -1,6 +1,6 @@
# Engineering progress # Engineering progress
Xenora is an experimental research project. Verified work is restricted to BetterXen is an experimental research project. Verified work is restricted to
independently authored synthetic programs and shaders; commercial game independently authored synthetic programs and shaders; commercial game
execution and authentic Xbox startup are unsupported. Progress is measured by execution and authentic Xbox startup are unsupported. Progress is measured by
reproducible tests, not by estimated game compatibility percentages. reproducible tests, not by estimated game compatibility percentages.
+1 -1
View File
@@ -68,7 +68,7 @@ def render_progress(status):
] ]
svg = [ svg = [
'<svg xmlns="http://www.w3.org/2000/svg" width="530" height="185" viewBox="0 0 530 185" role="img" aria-labelledby="title description">', '<svg xmlns="http://www.w3.org/2000/svg" width="530" height="185" viewBox="0 0 530 185" role="img" aria-labelledby="title description">',
'<title id="title">Xenora · recorded progress</title>', '<title id="title">BetterXen · recorded progress</title>',
'<desc id="description">' + escape(". ".join(f"{label}: {count} of {total}" for label, count, total in rows)) + '</desc>', '<desc id="description">' + escape(". ".join(f"{label}: {count} of {total}" for label, count, total in rows)) + '</desc>',
'<rect x="1" y="1" width="528" height="183" rx="10" fill="#18212a" stroke="#516171"/>', '<rect x="1" y="1" width="528" height="183" rx="10" fill="#18212a" stroke="#516171"/>',
'<g font-family="system-ui,sans-serif" fill="#eaf0f5">', '<g font-family="system-ui,sans-serif" fill="#eaf0f5">',
+7 -7
View File
@@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
# Build Xenora.app (native ARM64) into build/Xenora.app and run its smoke check. # Build BetterXen.app (native ARM64) into build/BetterXen.app and run its smoke check.
# Requires: macOS on Apple Silicon, Rust 1.100 (aarch64-apple-darwin), Swift 6 toolchain. # Requires: macOS on Apple Silicon, Rust 1.100 (aarch64-apple-darwin), Swift 6 toolchain.
set -eu set -eu
cd "$(dirname "$0")/.." cd "$(dirname "$0")/.."
@@ -19,18 +19,18 @@ MACOSX_DEPLOYMENT_TARGET=14.0 cargo build --locked --release -p xenora-ffi --tar
swift build --package-path app -c release --arch arm64 \ swift build --package-path app -c release --arch arm64 \
-Xlinker -L -Xlinker "$root/target/$target/release" -Xlinker -L -Xlinker "$root/target/$target/release"
bundle="$root/build/Xenora.app" bundle="$root/build/BetterXen.app"
rm -rf "$bundle" rm -rf "$bundle"
mkdir -p "$bundle/Contents/MacOS" mkdir -p "$bundle/Contents/MacOS"
cp "$(swift build --package-path app -c release --arch arm64 --show-bin-path)/Xenora" "$bundle/Contents/MacOS/Xenora" cp "$(swift build --package-path app -c release --arch arm64 --show-bin-path)/BetterXen" "$bundle/Contents/MacOS/BetterXen"
cat > "$bundle/Contents/Info.plist" <<PLIST cat > "$bundle/Contents/Info.plist" <<PLIST
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>CFBundleExecutable</key><string>Xenora</string> <key>CFBundleExecutable</key><string>BetterXen</string>
<key>CFBundleIdentifier</key><string>local.xenora.Xenora</string> <key>CFBundleIdentifier</key><string>org.macosporters.betterxen</string>
<key>CFBundleName</key><string>Xenora</string> <key>CFBundleName</key><string>BetterXen</string>
<key>CFBundlePackageType</key><string>APPL</string> <key>CFBundlePackageType</key><string>APPL</string>
<key>CFBundleShortVersionString</key><string>0.1.0</string> <key>CFBundleShortVersionString</key><string>0.1.0</string>
<key>LSMinimumSystemVersion</key><string>14.0</string> <key>LSMinimumSystemVersion</key><string>14.0</string>
@@ -52,7 +52,7 @@ PLIST
# this build executes no guest code, so it needs no JIT entitlement. # this build executes no guest code, so it needs no JIT entitlement.
codesign --force --sign - "$bundle" codesign --force --sign - "$bundle"
binary="$bundle/Contents/MacOS/Xenora" binary="$bundle/Contents/MacOS/BetterXen"
[ "$(lipo -archs "$binary")" = arm64 ] || fail "executable is not arm64-only: $(lipo -archs "$binary")" [ "$(lipo -archs "$binary")" = arm64 ] || fail "executable is not arm64-only: $(lipo -archs "$binary")"
"$binary" --smoke "$binary" --smoke
echo "build-app: built $bundle" echo "build-app: built $bundle"
+2 -2
View File
@@ -9,5 +9,5 @@ export MTL_SHADER_VALIDATION_REPORT_TO_STDERR=1
export MTL_SHADER_VALIDATION_ABORT_ON_FAULT=1 export MTL_SHADER_VALIDATION_ABORT_ON_FAULT=1
export CARGO_BUILD_JOBS=${CARGO_BUILD_JOBS:-4} export CARGO_BUILD_JOBS=${CARGO_BUILD_JOBS:-4}
cargo build --locked -p xenora cargo build --locked -p betterxen
exec timeout 30s cargo run --locked -p xenora -- demo exec timeout 30s cargo run --locked -p betterxen -- demo
+1 -1
View File
@@ -33,7 +33,7 @@ def check_large_generated_paths(tracked_paths: Iterable[str], *, suspicious_pref
return HealthFinding("generated-paths", ok, detail) return HealthFinding("generated-paths", ok, detail)
def check_upstream_configured(remotes: Iterable[str], *, expected: str = "ranveersoni98/Xenora") -> HealthFinding: def check_upstream_configured(remotes: Iterable[str], *, expected: str = "MacosPorters/betterxen") -> HealthFinding:
names = set(remotes) names = set(remotes)
# Accept either a remote named upstream or origin pointing at expected. # Accept either a remote named upstream or origin pointing at expected.
ok = "upstream" in names or "origin" in names ok = "upstream" in names or "origin" in names
+1 -1
View File
@@ -132,7 +132,7 @@ class Cli(unittest.TestCase):
def test_shipped_config_parses(self): def test_shipped_config_parses(self):
r = self.run_cli("config-get", "upstream") r = self.run_cli("config-get", "upstream")
self.assertEqual(r.returncode, 0, r.stderr) self.assertEqual(r.returncode, 0, r.stderr)
self.assertEqual(r.stdout.strip(), "ranveersoni98/Xenora") self.assertEqual(r.stdout.strip(), "MacosPorters/betterxen")
def test_summary_accepts_now_after_subcommand(self): def test_summary_accepts_now_after_subcommand(self):
# Actions passes --now after `summary`; parent-only --now used to reject that. # Actions passes --now after `summary`; parent-only --now used to reject that.
+1 -1
View File
@@ -106,7 +106,7 @@ the tool's own run paths. The script writes the versions it used to
test process under the Cargo target directory, so two runs that share a target test process under the Cargo target directory, so two runs that share a target
directory do not overwrite each other's files; `cargo clean` removes them. directory do not overwrite each other's files; `cargo clean` removes them.
Provenance. The source, the name lists and the script were written for Xenora Provenance. The source, the name lists and the script were written for BetterXen
and are GPL-3.0-or-later. Nothing from a Windows SDK, a C runtime or another and are GPL-3.0-or-later. Nothing from a Windows SDK, a C runtime or another
project is compiled or linked. The compiler and linker are LLVM projects project is compiled or linked. The compiler and linker are LLVM projects
under the Apache License 2.0 with LLVM exceptions; they are tools, not inputs. under the Apache License 2.0 with LLVM exceptions; they are tools, not inputs.