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.
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.
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.
The CLI has no specific requirement, and you can just:
cargo build --releaseFor 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-rustlsYou can also target GNU to solve the asm-hashes issue:
cargo build --release --target x86_64-pc-windows-gnuFor 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 serverThe 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):
cargo install --locked tauri-cli --version "^2"
cd desktop
cargo tauri buildThis 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| 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 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 crateTMP_DIRECTORY: Full path to a temporary directory for file extraction, defaults to
temp_dirPREFER_PARENTS: Favor parents in the 1G1R election process, defaults to truePREFER_REGIONS: Favor ROMs targeting more or fewer regions in the 1G1R election process, defaults to none, valid choices: none, broad, narrowPREFER_VERSIONS: Favor newer or earlier versions of ROMs in the 1G1R election process, defaults to new, valid choices: none, new, oldPREFER_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, alphaREGIONS_ONE_SUBFOLDERS: Sort 1G1R ROMs in subfolders, defaults to none, valid choices: none, alphaREGIONS_ONE_STRICT: true will elect ROMs regardless of them being available, false will only elect available ROMs, defaults to falseGROUP_SUBSYSTEMS: Group all system variants in a single directory, defaults to trueCHD_CD_HUNK_SIZE: The CHD hunk size in bytes for CDs, defaults to auto, valid range: 16-1048576CHD_CD_COMPRESSION_ALGORITHMS: The CHD compression algorithms for CDs, up to 4 can be specified, defaults to auto, valid choices: none, cdfl, cdlz, cdzl, cdzsCHD_DVD_HUNK_SIZE: The CHD hunk size in bytes for DVDs, defaults to auto, valid range: 16-1048576CHD_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, zstdCHD_PARENTS: Enables the CHD parents feature, needs playlists to have been generated, defaults to falseRVZ_BLOCK_SIZE: The RVZ block size in KiB, defaults to 128, valid range: 32-2048RVZ_COMPRESSION_ALGORITHM: The RVZ compression algorithm, defaults to zstd, valid choices: none, zstd, bzip2, lzma, lzma2RVZ_COMPRESSION_LEVEL: The RVZ compression level, defaults to 5, valid ranges: 1-22 for zstd, 1-9 for the other algorithmsRVZ_SCRUB: Enables RVZ scrubbing, applies only to export-roms, defaults to falseSEVENZIP_COMPRESSION_ALGORITHM: The 7Z compression algorithm, defaults to lzma2, valid choices: lzma2, zstdSEVENZIP_COMPRESSION_LEVEL: The 7Z LZMA2 compression level, defaults to 9, valid range: 1-9SEVENZIP_ZSTD_COMPRESSION_LEVEL: The 7Z Zstandard compression level, defaults to 19, valid range: 1-22SEVENZIP_SOLID_COMPRESSION: Toggles 7Z solid compression, defaults to falseZIP_COMPRESSION_ALGORITHM: The ZIP compression algorithm, defaults to deflate, valid choices: deflate, zstdZIP_COMPRESSION_LEVEL: The ZIP Deflate compression level, defaults to 9, valid range: 1-9ZIP_ZSTD_COMPRESSION_LEVEL: The ZIP Zstandard compression level, defaults to 19, valid range: 1-22Zstandard 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:
…${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
These should be in your ${PATH} for extra features.
暂无开放 Issues,或尚未同步最近议题。