Cross-platform ROMX desktop application workspace.
The ROMX GUI is a cross-platform Slint + Rust desktop application for packing
and unpacking ROMX files. It calls romx-core directly and targets macOS,
Linux, and Windows.
Run the GUI from source with:
cargo run -p romx-guiWhen macOS reports that a downloaded or extracted romx-gui.app is damaged,
remove the quarantine attribute from this trusted local build, then open it:
xattr -cr "./romx-gui.app"
open "./romx-gui.app"The packaged macOS layout is romx-gui.app; Linux packages contain one
romx-gui executable and Windows packages contain one self-contained
romx-gui.exe (the MSVC runtime is statically linked).
The current GUI provides:
- top-level packing and unpacking pages;
- unified left navigation for packing/unpacking and their game-file/LPL sub-pages;
- game-file packing with native file/folder dialogs;
- PNG/JPEG/WebP/GIF/BMP cover preview and exact PNG resizing;
- metadata JSON import plus the requested custom game-information fields;
- direct packing through
romx-core, with the generated ROMX path shown in the status bar; - ROMX verification and extraction;
- simplified Chinese/English switching and portable minimize/maximize/close controls.
The GUI uses process-local extended temporary playlists with English names such
as temp-single-01.lplx, temp-list-01.lplx, and temp-list-01-2.lplx.
Single-file packing and LPL conversion pass these LPLX files directly to
romx-core. Each LPLX item keeps official RetroArch fields at the item root,
stores ROMX-only fields under a metadata object, and may specify a
cover_path file or directory. A selected core_path/core_name therefore
travels unchanged through the GUI conversion. During a single-item edit,
temp-list-01-2.lplx is converted independently; Save merges it into
temp-list-01.lplx, while Back removes the edit playlist. The temporary
workspace is removed when a playlist is replaced or the GUI exits.
GUI text is stored outside the source in crates/romx-gui/locales/en.json and
crates/romx-gui/locales/zh-CN.json. At runtime the loader checks
ROMX_LOCALE_DIR, then a locales directory beside the executable (or
Contents/Resources/locales inside the macOS app), and finally the development
locale directory. To add another language, copy en.json, translate its
values, and add the language to the Slint language selector.
crates/romx-core: safe Rust orchestration for the frozen ROMX 0.2.0 container, metadata/cover workflows, extraction, SAVE handling, and LPL conversion. ROMX wire-format parsing, writing, validation, and save classification are delegated to the vendoredlibromxlibrary throughlibromx-sys; ROMX 0.1.x containers are not read or written onmain.crates/libromx-sys: thin generated bindings and a CMake build wrapper that statically links the fixedvendor/libromxsubmodule (an explicitROMX_LIBROMX_DIRoverride is available for local library development).crates/romx-cli: command-line interface for Core file operations and LPL import/export.crates/romx-gui: Slint + Rust desktop GUI. It callsromx-coredirectly and is intended to target macOS, Windows, and Linux.
The current release line is 0.2, represented as SemVer 0.2.0. The single
version source is [workspace.package] in the root Cargo.toml; all crates
inherit it. Rust callers can read romx_core::APP_VERSION or call
romx_core::application_version(), and the CLI exposes the same value through
romx --version.
The core exposes byte-oriented functions for GUI and CLI callers:
pack_bytes/pack_to_path: create the ROMX 0.2.0payload | RIDX | metadata | cover | mutable | footercontainer from an unchanged ROM and strict 0.2.0 metadata. Entry CRC32 is written by default.pack_bytes_with_crc32/pack_to_path_with_crc32: the same operations with an explicit eight-digit CRC32 lookup override. The immutable SHA-256 footer field is opt-in.pack_bytes_with_writer_options/pack_to_path_with_writer_options: expose the writer options, including opt-in body SHA-256 and atomic publication.normalize_cover_bytes/normalize_cover_path: accept PNG, JPG/JPEG, WebP, GIF, and BMP; preserve PNG bytes by default, or convert/resize any supported format to an exact PNG resolution.read_bytes/read_path: validate the ROMX 0.2.0 footer, RIDX, entry coverage, strict metadata/PNG, and optional immutable hash.validate_bytes/validate_path: return component-level validation status, calculated payload CRC32/SHA-256, and cover information.read_metadata_cover_bytes/read_metadata_cover_path: lightweight preview readers that load only the footer, metadata, and optional cover; they intentionally skip the ROM payload and payload/body hash checks.extract_to_dir: write the embedded payload, metadata, cover, and logical SAVE objects to a directory. Single-file saves remain ordinary files; multi-file and PSP savedata remain directory trees.save_profile/detect_save_bundles/inspect_mutable_path: apply platform-aware save boundaries. PSP marker directories such asPARAM.SFO, directory-per-save platforms, and single-file battery saves are handled by the core rather than by a frontend.read_mutable_save_objects/extract_mutable_save_object/extract_mutable_save_objects: inspect or export SAVE objects from the ROMX mutable region while validating bundle and directory CRC32 values.read_mutable_region: retain the complete mutable byte region, including namespaces unknown to the current client, for lossless metadata/cover edits.inspect_romx_path,identity_from_path, andcheck_frontend_compatibility: provide frontend-ready diagnostics, stable IDs, and platform/format/core checks without loading a ROM payload into the GUI.required_metadata: create a schema-versioned metadata object for a GUI form.classify_gb_payload: apply the0xC0/0x80Game Boy CGB-flag policy.crc32/normalize_crc32: calculate or validate the RetroArch/database lookup key; body SHA-256 is an optional container integrity check, while payload SHA-256 is a derived API value.plan_lpl_import: resolve every LPL item to its ROM and optional thumbnail without copying large payloads; intended for GUI import previews.import_lpl: convert an.lplor extended.lplxand its ROM/thumbnail tree to sequential.romxfiles plus a manifest. Playlist platform and format information are stored in the ROMX footer/RIDX fields, while formal metadata remains limited to the 0.2.0 schema.export_lpl: extract a ROMX directory to a RetroArch-compatible ROM, thumbnail, playlist, and per-game SAVE tree. The generated.lplis filtered to RetroArch's official root/item fields; ROMX-only metadata and custom thumbnail path keys are not written into the playlist. UseExportLplOptions::save_diror the CLI--save-dirto select the SAVE root.
The core's official field lists follow RetroArch's current playlist.c reader and
writer. Root fields are version, default_core_path, default_core_name,
base_content_directory, label_display_mode, right_thumbnail_mode,
left_thumbnail_mode, thumbnail_match_mode, sort_mode, the scan_*
configuration fields, and items. Item fields include the usual path,
label, core_path, core_name, crc32, and db_name, plus entry_slot,
subsystem fields, runtime counters, and last-played date/time fields. The
exporter writes only these allowlisted fields.
The core does not start an emulator and does not contain UI code. LPL/LPLX conversion is implemented above the binary format layer so the same behavior is shared by the GUI and CLI.
Install Rust from https://www.rust-lang.org/tools/install, then run:
cargo fmt --all
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warningsThe repository includes rust-toolchain.toml, so rustup automatically selects
the current stable toolchain and the rustfmt/clippy components on macOS,
Linux, and Windows. The GUI uses Slint's software renderer with winit, so no
platform-specific Rust feature flags are needed.
On Debian-based Linux systems, install the native GUI development packages
before building romx-gui:
sudo apt-get update
sudo apt-get install -y \
pkg-config libfontconfig1-dev libfreetype-dev \
libx11-dev libx11-xcb-dev libxcb1-dev libxcb-render0-dev \
libxcb-shape0-dev libxcb-xfixes0-dev libxcb-xkb-dev \
libxkbcommon-dev libxkbcommon-x11-dev libwayland-dev \
libegl1-mesa-dev libudev-devThen build the Linux GUI with:
CARGO_TARGET_DIR=target/linux cargo build -p romx-gui --release
./target/linux/release/romx-guiUsing a separate target directory is recommended when the Linux workspace is
mounted from macOS through OrbStack, so Linux artifacts do not replace the
native macOS artifacts in target/release.
Pushing a v* version tag or manually running .github/workflows/build.yml
builds and tests native arm64 and x86_64 packages for macOS, Linux, and Windows.
On Windows, choose romx-windows-x86_64.zip for Intel/AMD 64-bit systems and
romx-windows-arm64.zip for ARM64 systems. The Windows executables statically
link the MSVC runtime, so installing a separate Visual C++ Redistributable is
not required.
The GUI release
layouts are platform-native: macOS archives contain romx-gui.app, Linux
archives contain the single romx-gui executable, and Windows archives contain
the single romx-gui.exe. Pushing a tag such as v0.2.0 additionally attaches
the archives and SHA-256 files to the GitHub release. A manual workflow run
creates downloadable Actions artifacts without publishing a release.
The compatibility test requires the optional reference data directory and is ignored in portable CI. When that data is available, run it explicitly:
cargo test -p romx-core --test real_data_compat -- --ignored --nocaptureBuild the release executable:
cargo build -p romx-cli --release
./target/release/romx --helpPack, inspect, verify, and extract a ROMX file:
./target/release/romx pack game.gba metadata.json --cover cover.png --output game.romx
# Convert a non-PNG cover, or resize any cover, to an exact PNG resolution.
./target/release/romx pack game.gba metadata.json --cover cover.webp --cover-size 320x320 --output game.romx
# Optional database identity override; otherwise CRC32 is regenerated from game.gba.
./target/release/romx pack game.gba metadata.json --crc32 0123abcd --output game.romx
# Multi-file descriptor sets keep every sidecar in RIDX for the ROMX VFS.
./target/release/romx pack-set \
--platform saturn --launch-format cue --entrypoint Game.cue \
--entry Game.cue=/path/to/Game.cue \
--entry 'Track 01.bin=/path/to/Track 01.bin' \
--metadata metadata.json --output game.romx
./target/release/romx inspect game.romx
./target/release/romx validate game.romx
./target/release/romx verify game.romx
./target/release/romx extract game.romx --output extractedImport and export RetroArch playlists:
./target/release/romx import-lpl \
./data/retroarch/playlists/00-GB.lpl \
--rom-root ./data \
--cover-root ./data/retroarch/thumbnails \
--output ./build/romx/00-GB
# If the LPL contains absolute ROM paths, no ROM/cover roots are required.
./target/release/romx import-lpl ./data/playlist.lpl \
--output ./build/romx-out
# Optional: force one database CRC32 identity for all imported entries.
./target/release/romx import-lpl ./data/playlist.lpl --rom-dir ./data/roms \
--crc32 0123abcd --output ./build/romx-out
./target/release/romx export-lpl \
./build/romx/00-GB \
--output ./build/retroarch
# The exporter also writes per-game SAVE files/directories below saves/00-GB.
# Override that root when integrating with an existing frontend layout.
./target/release/romx export-lpl \
./build/romx/00-GB \
--output ./build/retroarch \
--save-dir ./build/retroarch/saves/00-GB