Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

oxyromon

> 编程语言
Open source

Rusty ROM OrgaNizer

189 stars0 likes1 views
WebsiteGitHub

About

Rusty ROM OrgaNizer

oxyROMon 0.23.0

Rusty ROM OrgaNizer

oxyROMon is a cross-platform opinionated CLI ROM organizer written in Rust. Like most ROM managers, it checks ROM files against known good databases. It is designed with archiving in mind, so it only supports original and lossless ROM formats. It can, however, export in various popular lossy formats, leaving the lossless ROM files untouched. Sorting can be done in regions mode, in so-called 1G1R mode, or both. Console, computer, and arcade (WIP) systems are supported using Logiqx DAT files. The first two require No-Intro or Redump DAT files, while the latter uses MAME or FBNeo DAT files.

Quick start

To create and manage a new system, you need a Logiqx DAT file. Cartridge-based consoles and older computers can be downloaded from Dat-o-Matic. CD-based ones can be downloaded from Redump. Alternatively, the download-dats subcommand can download and import Redump DATs for you because they offer direct links. MAME DATs can be found on Progetto-Snaps. FBNeo DATs are harder to find; libretro has some.

Manually downloaded DATs are then imported using the import-dats subcommand. Once a system has been created, you can import ROMs using the import-roms subcommand. Imported ROMs that check out will be placed in the main folder of their respective system. Then, the ROMs can be sorted using the sort-roms subcommand according to your configuration. Please add at least one region in the REGIONS_ALL or REGIONS_ONE list beforehand. See all configuration options below.

You can also convert ROMs between various formats using the convert-roms subcommand, check them later on with the check-roms subcommand, or purge them with the purge-roms subcommand to empty Trash folders or detect and forget manually deleted ROMs.

Installation

You can grab pre-compiled Linux, Mac, and Windows binaries from the release page.

A docker image is also available on Docker Hub.

If you use Arch Linux, there's a package in the official repos.

It is also possible to install from crates.io using cargo install oxyromon.

Finally, if you're feeling adventurous, you can always build from the source, as shown in the instructions below.

Compilation

The CLI has no specific requirement, and you can just:

cargo build --release

For Windows, asm-hashes don't work with MSVC toolchain at the moment so you need to build without it:

cargo build --release --no-default-features --features use-rustls

You can also target GNU to solve the asm-hashes issue:

cargo build --release --target x86_64-pc-windows-gnu

For the web UI, you will also need the Trunk bundler and the wasm32-unknown-unknown target:

rustup target add wasm32-unknown-unknown
cargo install --locked trunk
cargo build --release --features server

The web UI (a Leptos app) is compiled to WebAssembly and embedded into the binary during the build. Set SKIP_TRUNK=true to skip that step when the assets are already built.

There is also an optional native desktop app, which wraps the same web UI in a Tauri window. It lives in desktop/ and needs everything listed above for the web UI, plus the Tauri CLI and your platform's webview development packages (on Linux: webkit2gtk-4.1, gtk3, librsvg and libayatana-appindicator):

bash
cargo install --locked tauri-cli --version "^2"
cd desktop
cargo tauri build

This produces a oxyromon-desktop binary (and installers under desktop/target/release/bundle/). It bundles the regular oxyromon binary as a sidecar, starts oxyromon server on a free loopback port when launched, and points the window at it — so the desktop app and the CLI share the same database and settings. Use cargo tauri dev while working on it.

The build uses rustls by default, but you can also opt for OpenSSL:

cargo build --no-default-features --features use-native-tls

Features

feature description default
nod handle RVZ and WBFS natively
sevenz handle 7z and ZIP natively, and enable zstd x
server build the server subcommand
use-native-tls use the system OpenSSL library
use-rustls use rustls x

The sevenz feature handles archives with the sevenz-rust2 and zip crates rather than spawning 7-Zip. Listing in particular becomes a metadata read instead of a process launch, which is what check-roms and import-roms do most. It is on by default because Zstandard archives can be read and written nowhere else: 7-Zip has no such codec.

ZIP is native throughout. For 7z, renaming or deleting an entry, or adding one to an archive that already exists, goes to 7-Zip when it can read the archive — those change metadata without touching the compressed data, and sevenz-rust2 offers no way to do the same, so doing it natively means a full rebuild. Zstandard archives are rebuilt natively instead, since 7-Zip cannot open them at all. 7z therefore remains useful for LZMA2 collections, and is unnecessary for Zstandard or ZIP-only ones.

The nod feature links the nod crate in place of shelling out to dolphin-tool and wit, so RVZ and WBFS work with neither program installed. Conversions are faster, and RVZ files are interchangeable with Dolphin's own in both directions. Two caveats: RVZ_SCRUB has no equivalent in nod and is ignored (with a warning), and nod needs a C toolchain to build its compression libraries.

Configuration

Configuration is done from the command line, and settings are stored in the SQLite database. The database itself is stored in ${data_dir}/oxyromon as defined in the dirs crate. This may be overwritten using the OXYROMON_DATA_DIR environment variable.

Settings can be global or per-system. Per-system settings take precedence over global ones, with automatic fallback to the global value when no system-specific override is set. Use the -n/--system flag with the config subcommand to manage system-specific settings.

Available settings:

  • ROM_DIRECTORY: Full path to your ROM directory, defaults to ${home_dir}/Emulation as defined in the dirs crate
  • TMP_DIRECTORY: Full path to a temporary directory for file extraction, defaults to temp_dir
  • PREFER_PARENTS: Favor parents in the 1G1R election process, defaults to true
  • PREFER_REGIONS: Favor ROMs targeting more or fewer regions in the 1G1R election process, defaults to none, valid choices: none, broad, narrow
  • PREFER_VERSIONS: Favor newer or earlier versions of ROMs in the 1G1R election process, defaults to new, valid choices: none, new, old
  • PREFER_FLAGS: List of ROM flags to favor in the 1G1R election process (eg: Rumble Version)
  • DISCARD_FLAGS: List of ROM flags to discard (eg: Virtual Console)
  • DISCARD_RELEASES: List of ROM releases to discard (eg: Beta)
  • LANGUAGES: List of languages you want to keep, applies only to ROMs that do specify them (eg: En,Ja)
  • REGIONS_ALL: Unordered list of regions for which you want to keep all ROM files (eg: US,EU,JP)
  • REGIONS_ONE: Ordered list of regions for which you want to keep a single ROM file (eg: US,EU)
  • REGIONS_ALL_ARCADE: Unordered list of ROM types you want to place in the main directory (eg: clone)
  • REGIONS_ONE_ARCADE: Unordered list of ROM types you want to place in the 1G1R directory (eg: bios,parent)
  • REGIONS_ALL_SUBFOLDERS: Sort ROMs in subfolders, defaults to none, valid choices: none, alpha
  • REGIONS_ONE_SUBFOLDERS: Sort 1G1R ROMs in subfolders, defaults to none, valid choices: none, alpha
  • REGIONS_ONE_STRICT: true will elect ROMs regardless of them being available, false will only elect available ROMs, defaults to false
  • GROUP_SUBSYSTEMS: Group all system variants in a single directory, defaults to true
  • CHD_CD_HUNK_SIZE: The CHD hunk size in bytes for CDs, defaults to auto, valid range: 16-1048576
  • CHD_CD_COMPRESSION_ALGORITHMS: The CHD compression algorithms for CDs, up to 4 can be specified, defaults to auto, valid choices: none, cdfl, cdlz, cdzl, cdzs
  • CHD_DVD_HUNK_SIZE: The CHD hunk size in bytes for DVDs, defaults to auto, valid range: 16-1048576
  • CHD_DVD_COMPRESSION_ALGORITHMS: The CHD compression algorithms for DVDs, up to 4 can be specified, defaults to auto, valid choices: none, flac, huff, lzma, zlib, zstd
  • CHD_PARENTS: Enables the CHD parents feature, needs playlists to have been generated, defaults to false
  • RVZ_BLOCK_SIZE: The RVZ block size in KiB, defaults to 128, valid range: 32-2048
  • RVZ_COMPRESSION_ALGORITHM: The RVZ compression algorithm, defaults to zstd, valid choices: none, zstd, bzip2, lzma, lzma2
  • RVZ_COMPRESSION_LEVEL: The RVZ compression level, defaults to 5, valid ranges: 1-22 for zstd, 1-9 for the other algorithms
  • RVZ_SCRUB: Enables RVZ scrubbing, applies only to export-roms, defaults to false
  • SEVENZIP_COMPRESSION_ALGORITHM: The 7Z compression algorithm, defaults to lzma2, valid choices: lzma2, zstd
  • SEVENZIP_COMPRESSION_LEVEL: The 7Z LZMA2 compression level, defaults to 9, valid range: 1-9
  • SEVENZIP_ZSTD_COMPRESSION_LEVEL: The 7Z Zstandard compression level, defaults to 19, valid range: 1-22
  • SEVENZIP_SOLID_COMPRESSION: Toggles 7Z solid compression, defaults to false
  • ZIP_COMPRESSION_ALGORITHM: The ZIP compression algorithm, defaults to deflate, valid choices: deflate, zstd
  • ZIP_COMPRESSION_LEVEL: The ZIP Deflate compression level, defaults to 9, valid range: 1-9
  • ZIP_ZSTD_COMPRESSION_LEVEL: The ZIP Zstandard compression level, defaults to 19, valid range: 1-22

Zstandard is opt-in. It compresses a good deal faster than LZMA2 at a comparable size, but nothing else reads it: 7-Zip ships no Zstandard codec, and neither do emulators or Windows Explorer, so a zstd .zip or .7z opens in oxyromon and nowhere else. Worth it for archival, a poor idea for a library you play from. It also needs the sevenz feature, which is on by default.

Note: TMP_DIRECTORY should have at least 8GB of free space to extract those big DVDs.

Example configuration:

…

Directory Layout

${ROM_DIRECTORY}
    ...
    ⮡ ${SYSTEM_NAME} # Base directory for each system, allowed regions will be stored here
        ⮡ 1G1R # Sub directory for 1G1R games
        ⮡ Trash # Sub directory for trashed games
    ...

${SYSTEM_NAME} is influenced by the GROUP_SUBSYSTEMS setting

External programs

These should be in your ${PATH} for extra features.

  • 7z: 7Z and ZIP support
  • bchunk: CUE/BIN to ISO support
  • chdman: CHD support
  • ctrtool: CIA support
  • dolphin-tool: RVZ support, unless built with the nod feature
  • flips: BPS and IPS support
  • maxcso: CSO/ZSO support
  • [nsz](https://g

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustemulationno-introredump

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言