Skip to main content
ReXGlue is the command-line tool for recompiling Xbox 360 executables. It provides commands for project initialization, code generation, migration, and test generation.

Usage

rexglue <command> [flags] [args]

Commands

CommandDescription
initInitialize a new ReXGlue project
codegenAnalyze XEX and generate C++ code
migrateMigrate project to current SDK version
recompile-testsGenerate Catch2 tests from PPC assembly
Run rexglue --help for detailed flag documentation.

Common Flags

These flags work with all commands:
--log-level
string
default:"info"
Logging level: trace, debug, info, warn, error, fatal
--log-verbose
boolean
default:"false"
Enable verbose logging (sets level to trace)
--log-file
string
default:"\"\""
Log file path (empty = no file logging)
--force
boolean
default:"false"
Generate output even if validation errors occur

Environment Variables

ReXGlue supports setting any flag via environment variables using the format:
export REX_<FLAG_NAME>=<value>
For example:
export REX_LOG_LEVEL=debug
export REX_FORCE=true
rexglue codegen myproject_config.toml

Exit Codes

  • 0 - Success
  • 1 - Error (check logs for details)

Examples

Initialize a New Project

rexglue init --app-name my_game --app-root ./my_game_project

Generate Code from Configuration

rexglue codegen my_game_config.toml

Enable Verbose Logging

rexglue codegen my_game_config.toml --log-verbose

Force Generation Despite Errors

rexglue codegen my_game_config.toml --force

Build docs developers (and LLMs) love