Skip to content
aykhaniumPublic

About

Experimental Apple Silicon (ARM macOS) compatibility layer for XCL using CrossOver, Rosetta 2 and D3DMetal. Native ARM64 runtime is not implemented; retail gameplay is unverified.

Topics

Resources

Contributing

Stars

276 stars

Watchers

8 watching

Forks

Repository files navigation

MacBox logo

MacBox

MacBox brings setup, runtime checks and game launching to Apple Silicon Macs. It keeps the compatibility engine, dependencies, saves and caches in a persistent location outside the launcher checkout. The engine uses an unchanged, pinned revision, obtained separately during setup. See sources and licenses for its origin and component terms.

Project progress: 75%, a maintainer estimate

Project progress: 75% — maintainer estimate.

Experimental software. A successful build or launch does not establish playable speed or reliable gameplay. See validation for the commands actually run, their results and their limits. Performance reports from other Macs are not measurements of your machine.

The launcher

Preview of actual MacBox command-line help output

MacBox command help — actual CLI output, typeset for readability.

Preview of actual MacBox runtime health-check output

Runtime health check — actual CLI output; home directory shortened to $HOME. This checks local source and runtime files; it does not test gameplay.

Requirements

  • An Apple Silicon Mac with Rosetta 2.
  • Python 3.9 or later, Git, Rust/rustup and Apple's command-line tools.
  • A prepared CrossOver Wine 26.3 build with the required patches and D3DMetal 4.0 beta 3, obtained under their applicable terms.
  • LLVM-MinGW 20261117 and DXC, supplied locally during setup.
  • Your own game files, outside this repository.

The engine uses Windows x86-64 code under Wine and Rosetta, with graphics translated through D3DMetal. The native Python launcher does not make the engine ARM64-native. The current validation setup is an M5 Max, 64 GB, macOS 27.2; this does not establish support for other macOS versions. See validation for the actual results.

Set up

Clone MacBox, install Rust 1.98.1 and its Windows target, then supply the prepared dependency directories and your game folder. Setup does not install Rust or its target automatically.

git clone https://github.com/aykhanium/MacBox.git
cd MacBox
rustup toolchain install 1.98.1 --profile minimal
rustup target add --toolchain 1.98.1 x86_64-pc-windows-gnullvm
./macbox setup \
  --wine "/path/to/wine-cx" \
  --toolchain "/path/to/llvm-mingw" \
  --dxc "/path/to/dxc" \
  --game "/path/to/your/game"
./macbox doctor
./macbox build

To import existing runtime state on the first setup, also supply --state-from "/path/to/your/runtime-state". That directory must contain cache, data and wineprefix folders; it is not necessarily the source checkout. Close all Wine/game sessions first. Existing destination state is not replaced. Keep the original installation until you have checked the imported state.

Setup keeps its engine checkout, dependencies and state under ~/Library/Application Support/MacBox by default. Set MACBOX_HOME or pass --home "/path/to/MacBox-state" before the command to use another location outside the repository. Configuration is stored there in config.json; copied dependencies live in runtime. Moving or updating the launcher does not replace your saves.

Setup stages prepared dependencies; it does not install tools or build Wine. Supply the patched Wine build identified in THIRD_PARTY.md; an arbitrary Wine or CrossOver installation is not an equivalent replacement.

Play

./macbox run

After setup at the default state location, you can also double-click Play MacBox.command in Finder.

The selected starting profile is Series X, 1920×1080 output, render scale 0.5. Automatic Enter presses are disabled. These are launch settings; the engine source remains unchanged. This is not a claim of identical performance across machines, dependency versions or saved games.

Environment overrides such as VICTORY_OUTPUT, VICTORY_RENDER_SCALE, VICTORY_LOG and VICTORY_KEYS are honored, including empty values. Use VICTORY_DIAGNOSTICS=1 with both build and run for a diagnostics build.

./macbox run --dry-run shows the launch command and environment without starting the game. doctor checks source and staged runtime files without building or launching; a successful check is not a gameplay test.

The engine's own command-line interface is available through:

./macbox engine -- --help
./macbox engine config

The separator passes option flags to the engine instead of the MacBox parser. run and engine use the engine's launch scripts, which check/build the release executable before starting Wine, even for an engine help or version command.

Run ./macbox --help or a command's --help for its options. The engine revision is pinned in engine.lock.json; setup does not follow a moving upstream branch.

Check the launcher and engine

./macbox test
python3 -m unittest discover -s tests -v

These check the MacBox wrapper. Engine tests are separate:

./macbox test --engine
./macbox test --wine

--engine runs the native Cargo workspace tests; --wine runs the engine's tests under Wine, including GPU checks where supported. Report unavailable hardware and skipped tests separately. Neither command is a retail-game playthrough.

GitHub CI checks the Python wrapper and launcher shell syntax. It does not run Wine, GPU tests or a game, and does not publish runtime bundles.

Project history and attribution

The earlier MacBox implementation remains available through commit 1c3082b56d1aa2199105dfe37ae50f520639d34c under its original licenses. The current implementation replaces those files in the working tree; it does not relicense history or incorporate the earlier runtime modifications into the external engine.

The MacBox launcher is GPL-3.0-or-later; see LICENSE. External components retain their own notices, credits and terms, including the engine's table-data exception. See THIRD_PARTY.md for provenance and licensing details. Game files and runtime bundles are not included.

MacBox is independent of the game publisher, Microsoft, Apple and CodeWeavers. It grants no rights to game files or proprietary runtime components.

About

Experimental Apple Silicon (ARM macOS) compatibility layer for XCL using CrossOver, Rosetta 2 and D3DMetal. Native ARM64 runtime is not implemented; retail gameplay is unverified.

Topics

Resources

Contributing

Stars

276 stars

Watchers

8 watching

Forks

Releases

Packages

Contributors

Languages