A native Rust + egui desktop application for working with Nintendo 64 ROM images. Turtle64 was heavily inspired by two excellent community tools, ROM64 and romjudge, and aims to carry their spirit forward in a single cross-platform GUI that combines format conversion, header inspection, checksum/hash calculation, and No-Intro DAT verification.
Turtle64 is pre-alpha until 1.0. Keep backups of original images before converting, patching, or renaming them; use only files you are entitled to use.
- Install a build from Releases or build from source, then open Turtle64.
- On Single ROM, open an image to inspect its header, check code, and hashes. Byte order is detected from the contents, not the extension.
- Optionally load a locally obtained No-Intro DAT using Load DAT. A missing match does not prove a file is corrupt; without a DAT, it is not database-verified.
- Choose an output format and destination to convert, or use Batch for files or recursively scanned folders. Keep the original until you have checked the result.
For 64DD images use the 64DD Disk tab; the experimental iQue tab handles iQue metadata and user-supplied decryption inputs. Use Firmware / unknown (read-only) for firmware or unclassified images. See the detailed limitations below before converting or patching.
-
Endianness detection from content, not file extension. Every ROM is identified as big-endian (
.z64), byte-swapped (.v64), or little-endian (.n64) by inspecting the header magic bytes, with a heuristic fallback for ROMs with non-standard PI BSD DOM1 configuration bytes. File pickers and batch folder scans recognize.z64,.v64,.n64,.jap,.pal,.usa,.u64,.rom, and.bin. -
Conversion between all three formats, for a single ROM or in batch across many files/whole folders (recursive), with a live progress bar and ETA, backed by a multi-threaded worker pool.
-
Full ROM header parsing, including title, game code (category / unique code / region), ROM version, boot address, clock rate, libultra version, and the header's embedded check code — per the public N64brew ROM Header wiki. The game title is decoded as strict ASCII / JIS X 0201 (half-width katakana) only, per guidance from Jhynjhiruu; Shift-JIS and GBK are intentionally not supported.
-
Advanced Homebrew ROM Header support: save type, RTC/region-free flags, per-port controller/accessory suggestions, and embedded metadata flag, decoded whenever the
"ED"marker is present. -
N64brew ROM Metadata: reads an external ZIP with the ROM's extension replaced by
.meta(for example,game.metabesidegame.z64), or a ZIP embedded in the ROM, shows itsmetadata.inifields (including localizations), description and image list, and can extract the files. -
Legacy IPL3 check code (CRC1/CRC2, not a true CRC): compares the header with calculated values for 6101, 6102/7101, 6103/7103, 6105/7105, 6106/7106, 7102, 5101 and recognized libdragon IPL3s. The 5101 seed used by
ipl3checksumis reverse-engineered; calculated values matched all 14 supplied Aleck64 images, but hardware verification remains outstanding. Detection fingerprints IPL3, not the physical CIC; regional chips with the same IPL3 cannot be distinguished. The 5167, 8303, 8401 and uncertain 8501 IPL3s have known SHA-1 fingerprints; fallback word-sum matches are tentative and can collide. Neither identifies a physical CIC. Their game checksums, including 8303's six-word checksum, are not calculated. iQue and HW1 check codes are also unsupported. See CIC-NUS. -
iQue Player & Aleck64 Arcade support: automatic detection of the 32-byte .CMD on iQue dumps (safely parsed and noted), a dedicated iQue tab (experimental), Aleck64 arcade game pak category (
'Z'), and identification of Aleck64 arcade IPL3s such asCIC-NUS-5101. Note: the'C'(China) region code has never been used by any official N64 game, and never by iQue Player ROMs, so Turtle64 does not treat it as evidence that a ROM is an iQue ROM (it is flagged yellow in the confidence estimate). -
iQue .cmd support: a .cmd content-metadata file with the same name as the loaded ROM is picked up automatically (or open one manually in the iQue tab). Its header and contentDesc fields are shown (title text prefers GBK; glyph display depends on font coverage) and its recorded app size and SHA-1 are compared with the ROM — nothing is assumed about the ROM being an iQue ROM. Recognized 4-digit SKSA and 7-digit game/manual content IDs are structurally decoded with genre labels; undocumented 8-digit app IDs remain opaque. Layout per the iQueBrew CMD page and jbop1626/iquecrypt.
-
iQue decryption (iQue tab): decrypt encrypted
.appfiles (user-supplied common key +.cmd), console-specific.recfiles (user-supplied Virage2 dump +recrypt.sys), or anything with a user-supplied AES-128 key/IV. Output is checked against the supplied.cmdSHA-1 when available, but CMD, ticket andrecrypt.syssignatures are not verified, so a hash match does not establish authenticity. Turtle64 ships no keys; you must provide every key and file yourself, from your own console or files you may legally use. Nothing you enter is saved. Non-SA apps are supported via a ticket + Virage2 dump (ECDH on sect233r1, implemented independently; use an individual ticket or select a unique content ID fromticket.sys), and an SKSA image can be split intosa1.bin/sa2.bin(andsk.bingiven your SK key/IV). Optionally decompress a SHA-1-matching SA2 raw DEFLATE stream to a separate file, capped at 64 MiB. The decompressed output is not separately verified. Single-file CDN ZIP archives can be opened directly (without extracting their files); the ZIP must contain one nonempty file of at most 64 MiB uncompressed. Decrypted non-ROM apps default to.bin. A read-only NAND inspector accepts a 64 MiB NAND data-area image, validates BBFS filesystem copies and FAT chains, and reports files without extracting or modifying them. BBFL linked filesystems are not supported; spare-area ECC can be compared through the library helper, but correction/repair is not implemented. No real NAND image was dumped or used for validation, so this inspection is structural and does not establish authenticity. Layouts per the iQueBrew CMD, Ticket, SKSA, Recrypt.sys and Virage2 pages, cross-checked against jbop1626/iquecrypt, marshallh/ique_sksa_decrypt and emoose/iQueTool (references only, no code used). -
Modern hashing: CRC32, MD5, and SHA-1, for use with ROM databases, plus FNV-1a (64-bit, via
fnv64-rs) and xxHash (XXH64, viaxxhash-rust) checksums. An optional "don't convert to big-endian when checking ROM info" toggle on the Single ROM tab additionally computes this same hash set against the ROM's original, native on-disk byte order (shown alongside, not instead of, the normalized hashes). Byte-swapped DATs use hashes of the byte-swapped representation; other DAT kinds use the normalized form. The toggle is on by default; big-endian ROMs skip the extra set since it would be identical. -
No-Intro DAT verification: load any Logiqx-style
.dat/.xmlfile and classify a ROM as a verified good dump, a CRC-match-but-hash-mismatch ("bad dump"), or simply not present in the database. Turtle64 can hold up to 8 DAT files loaded simultaneously — one per No-Intro N64 DAT kind (N64 BigEndian, N64 ByteSwapped, 64DD, Mario no Photopie SmartMedia, iQue CDN, iQue Decrypted, Aleck64 BigEndian, Aleck64 ByteSwapped) — so a ROM is checked against every relevant DAT at once instead of requiring you to switch which single DAT is active. "Load DAT…" loads one file; "Load all DATs…" lets you multi-select several (or all 8) at once, each auto-detected and routed to its matching slot by its own<header><name>text. The top bar shows each loaded DAT's name, version/date, and entry count. A "Check for DAT updates" button only re-reads already-loaded DAT files from disk — it never downloads anything automatically or on launch: No-Intro's DAT-o-MATIC site explicitly prohibits automated/bot access in its terms of service (and will ban the offending IP), so if you want a newer DAT you must download it yourself from No-Intro and then use this button (or just reload the file) to pick up the change. Matching uses CRC32 and whichever MD5/SHA-1 fields an entry provides; an entry without stronger hashes matches on CRC32 alone. Recorded size is not compared. -
IPL3 boot-code dumping & patching: extract a ROM's 0xFC0-byte IPL3 stage (offset
0x40-0x1000, per the N64brew IPL wiki) to a file for separate inspection, or patch in any previously-dumped IPL3 from abootcodesfolder kept next to the executable. Patching can optionally recalculate and rewrite the header's check code (CRC1/CRC2) to match the new IPL3/CIC pairing before you save the result. All 8 libdragon open-source IPL3 revisions (r1-r8; public domain/Unlicense) are bundled in the executable and auto-seeded intobootcodeson startup, ready to patch in immediately — libdragon's production builds are GPU-bruteforced to match CIC-NUS-6102's checksum so they boot on real hardware, but Turtle64 still identifies each revision by its own fingerprint rather than reporting it as a plain 6102. -
Full N64DD (64DD disk drive) support, in its own "64DD Disk" tab:
- Content-based format detection (never by file extension) for the three
known disk image formats:
.d64(SDK master disk format),.ndd(64DD Disk Dumper's LBA-ordered raw dump), and MAME's physical track-ordered format. NDD and MAME detection uses fixed file sizes; D64 also checks System Data and its expected size. This does not prove an image is valid. Layouts follow LuigiBlood's 64dd wiki. - System Data / Disk ID parsing (region, disk type, retail vs. development, game code, company code, production date, IPL load address/size, ROM/RAM area LBA bounds).
- Conversion between all three disk formats.
.d64is lossy and heavily trimmed: it keeps only the System Data, Disk ID, and the actually-used ROM/RAM Area (typically tens of MB), discarding the defect-track table, exact physical LBA sizing, and all disk padding that a full NDD/MAME dump carries (a fixed ~64.5 MB regardless of how much of the disk the game uses). Converting to.d64permanently discards that data, and converting a.d64back to NDD/MAME reconstructs an idealized, defect-free disk rather than the original bit-exact dump — the app warns about this in the UI whenever D64 is involved. NDD/MAME conversion, by contrast, round-trips exactly for defect-free disks (disks reporting defect/bad tracks are flagged in the UI, since the converter does not model alternate-track substitution). - A best-effort 64DD IPL CIC inference from disk region/type, not identification of a physical chip (the disk itself has no CIC).
- CRC32/MD5/SHA-1/FNV-1a/xxHash hashing of the whole disk image, plus a separate SHA-1 of just the ROM Area (matching the field jkbenaim's leotools reports for disk verification).
- MFS (the 64DD's FAT-like RAM filesystem) volume info and a directory listing with per-file size/date (also decoded as ASCII / JIS X 0201, matching cartridge header titles), plus best-effort file extraction.
- Content-based format detection (never by file extension) for the three
known disk image formats:
-
Export ROM/disk info to a text report, for a single ROM/disk or in batch across a whole folder — report filenames include the source file's extension (e.g.
game.z64_info.txt) so same-named ROMs of different formats don't clobber each other. Conversion can also optionally write the converted output's info report immediately afterward, with no second save dialog. -
Drag and drop, persistence and batch tooling — drop ROMs/folders/DATs/
.cmdfiles on the window; loaded DATs and options are remembered between sessions; batch runs end with a verified/bad/unknown summary, TXT/CSV/JSON export (combined or one file per ROM), a live Log tab, and a safe rename-to-No-Intro action. -
Patch tab — IPL3 patching plus region, PI timing and version editing within the N64brew header rules. Static GameShark / Action Replay and plain or encrypted Xplorer64 writes can be applied using a user-supplied RAM-to-ROM mapping.
-
Compare tab — two ROMs side by side to diagnose mismatched dumps.
-
Themes, languages and colour emoji — the Settings tab switches light/dark/system mode, colour scheme and accent colour, and picks one of 25 UI languages (translation catalogs live in
locales/*.txtasEnglish|||Translationlines; the English text is the key, so missing entries fall back to English). Colour emoji and CJK text use system fonts when present. -
Opt-in update check and log file — settings and
turtle64.loglive in the per-user app data folder (%APPDATA%\Turtle64,~/.config/turtle64, or macOS Application Support).
On the Patch tab, enter one XXXXXXXX YYYY code per line and select its input format. Supply the hexadecimal RAM start address, ROM start offset and length of a verified, contiguous, uncompressed mapping for that exact game and revision. No mapping is universal: data can be compressed, moved or generated at runtime. The mapping is not verified by Turtle64.
Only 8/16-bit 80, 81, F0, and F1 writes (and Xplorer64 2A) are supported. These become permanent changes to initial ROM bytes; they do not replicate repeated writes, boot timing or runtime behavior. Conditionals, repeaters, button codes, enablers and other runtime-dependent codes are rejected, not skipped. All codes must fit the mapping; header/IPL3 writes, overlapping writes and unaligned 16-bit writes are rejected. The patch applies to a working copy, saved separately in the selected byte order.
CRC1/CRC2 recalculation is enabled by default when the checksum region is touched. If the CIC is unknown or unsupported, the patch is rejected unless recalculation is explicitly disabled; leaving the old check code can prevent booting. No IPL3 checksum bypass or runtime code handler is injected. See Kodewerx's N64 code reference and GameHacking.org.
On the Single ROM tab, choose Firmware / unknown (read-only) for flash-cart, backup-device or cheat-device firmware, even when it has a recognizable N64 header. Images without a recognized header pattern, including heuristic-only detections, also open read-only automatically. This does not identify a particular device or validate its firmware: tentative header fields may not have their usual meanings.
The read-only view hashes the exact whole file, including any container header, and does not apply game-specific CIC, CRC1/CRC2, confidence, or DAT checks. An unclassified image is reported as not checked, not a bad dump; it is not eligible for DAT-based renaming. Batch scans show an unclassified count and export the hash basis in CSV/JSON. Normal ROM hashes are labeled as normalized payload hashes; exact-file hashes are also available. A missing DAT match for a recognized ROM only means it was not found in the loaded DATs.
Conversion and patching are blocked for unclassified images. If you have independently established that an image is a ROM and know its byte order, explicitly select that order in the Single ROM inspection mode. This is an assumption, not automatic verification; inspect the result before using it. Selecting a different file resets the mode to automatic.
The core (format detection, conversion, hashing, DAT matching, header patching) lives in the turtle64 library crate; turtle64-cli is a thin clap front-end that needs no GUI libraries (cargo build --no-default-features --bin turtle64-cli).
turtle64-cli [--dat FILE]... [--quiet] <command>
info <rom> [-f txt|csv|json] [--native-hashes] [--firmware]
hash <paths...> [--raw] CRC32 / MD5 / SHA-1
convert <paths...> --to z64|v64|n64 [-o DIR] [--with-info] [--source-format z64|v64|n64]
verify <paths...> [-f txt|csv|json] [-o FILE | --per-rom DIR] [--flagged-only]
rename <paths...> [-n] rename verified dumps to DAT names (needs --dat)
patch <rom> [--region C] [--pi-timings 0x80371240] [--rom-version N] [--no-fix-crc] [--source-format z64|v64|n64] [-o FILE]
compare <a> <b> side-by-side header/hash diff
formats list target formats
Folders are scanned recursively. info --firmware reports exact whole-file hashes without game-specific checks; hash --raw does the same for any input. Otherwise hash uses normalized ROM payloads for recognized ROMs and warns when it outputs raw hashes for an unclassified image. --source-format explicitly assumes the same byte order for every conversion input; use it only after identifying them. Examples:
Batch scanning reports inaccessible inputs and scans overlapping paths only once. Batch conversion and its text reports never overwrite existing files; collisions are reported as errors. Verified-ROM renaming uses hard links to avoid overwriting a destination that appears after preview; it requires a filesystem that supports hard links. Case-only renames on case-insensitive filesystems are reported as conflicts.
turtle64-cli verify ~/roms -d "Nintendo 64 (BigEndian).dat" -f csv -o results.csv
turtle64-cli rename ~/roms -d nointro.dat --dry-runExit codes depend on the command: 0 is success; 1 indicates a flagged
info/verify result (bad dump, not in DAT, unclassified, or per-file error),
a per-file hash/convert error, a rename conflict, or a difference in
compare; 2 indicates command-level usage or I/O failure. No DAT loaded
is not itself flagged. Use turtle64-cli <command> --help for all options.
Combined verify --output reports overwrite the specified file. Per-ROM
reports choose a numeric suffix when a name exists, but that check is not
atomic; avoid concurrent writers to the report directory. Batch conversion
rejects existing destinations.
- Windows: download
turtle64-windows-x86_64-setup.exefrom Releases (optional PATH entry for the CLI). Once available, the stable package can be installed withwinget install --id DerekTurtleRoe.Turtle64 --exact. The separateDerekTurtleRoe.Turtle64.Nightlypackage is for experimental nightly builds. Each package becomes available after its manifest is accepted by winget-pkgs;winget upgradechecks for new accepted versions. - macOS: use the
.dmgor architecture-specific.zipfrom Releases. The app is ad-hoc signed, not notarized. - Linux:
.deb,.rpm, AppImage and Flatpak from Releases.
Release automation: Turtle64 is pre-alpha until 1.0; there is no stable release yet. CI builds and tests the source before publishing. A v0.MINOR.PATCH tag matching Cargo.toml produces a pre-alpha GitHub prerelease, not a stable winget submission. A matching vMAJOR.MINOR.PATCH tag at 1.0 or above produces a stable release and submits its stable winget manifest. The tag must already exist when manually dispatching the Release workflow.
Nightlies run at 06:20 UTC daily from the default branch and can also be started manually. Until 1.0 they are pre-alpha nightlies. Each gets a unique prerelease tag and increasing date-based installer version; prereleases never become GitHub's latest stable release. Nightly assets include Windows installers and archives, macOS DMGs and archives, and Linux tarballs and AppImages. Debian, RPM and Flatpak packages are available for tagged releases, but not nightlies.
The stable, tagged pre-alpha and nightly Windows installers have separate identities and install directories. Their optional CLI PATH entries can conflict if more than one is enabled. The in-app update check still checks stable GitHub releases only; nightly updates are tracked through winget.
Maintainers must configure WINGET_TOKEN as a classic PAT with public_repo access and a fork of microsoft/winget-pkgs. Each nightly or stable release renders a manifest using the actual installer hash, validates it and submits a PR; acceptance, merging and publication by winget-pkgs are not controlled by this workflow. A missing token fails the winget submission job after uploading the generated manifests. No application update is silently installed. The Windows installer is built with Inno Setup.
To create a stable release from a clean, synchronized default-branch checkout, run:
.\scripts\release-stable.ps1 -Version 1.0.0After confirmation, the script updates the Cargo version and lockfile, runs cargo check, commits the version changes if necessary, and pushes the branch and matching tag. The tag starts the release workflow. The script rejects versions below 1.0 and existing tags; -Yes skips the confirmation for automation. If a push fails, review the script's error and the local Git state before retrying.
Fork maintainers: Point origin at your fork and check out its default branch at the same commit as origin's default branch. The working tree must be clean, and you need Git, Rust/Cargo, a configured Git author, and permission to push both the branch and tags. Enable GitHub Actions in the fork and allow the Release workflow to write repository contents. Branch protection that prohibits direct pushes will prevent the script from completing; prepare and merge the version change through your normal review process instead.
The winget submission workflow intentionally accepts only derekturtleroe/Turtle64: on a fork, the GitHub release can be published, but its winget job will fail. If you do not want winget submissions, disable the winget job in .github/workflows/release.yml (for example, set its if to ${{ false }}) before releasing. If you do want to publish your own package, adapt .github/workflows/winget.yml and packaging/winget/ to your repository, installer URL, and distinct package identifiers, and configure your own WINGET_TOKEN and winget-pkgs fork. Review installer identity and publisher metadata as well. The in-app update check in src/update.rs also points to the original repository and must be changed to check your fork's releases.
Install the current stable Rust toolchain, plus the Linux GUI dependencies listed in CONTRIBUTING.md when building the GUI on Linux. From the repository root:
cargo build --releaseThe GUI and CLI binaries are produced in target/release/ (.exe on
Windows). For a CLI-only build without GUI dependencies, run
cargo build --release --no-default-features --bin turtle64-cli.
In addition to the plain binary, Turtle64 can be packaged for Linux as a .deb, .rpm,
.AppImage, or .flatpak. The .deb and .rpm have their own workflows
(.github/workflows/deb.yml, rpm.yml), .github/workflows/linux-packaging.yml builds the
AppImage and Flatpak, all on every push/PR, and release.yml
attaches them to tagged GitHub Releases. To build them locally:
# .deb (Debian/Ubuntu) - requires `cargo install cargo-deb`
cargo build --release
cargo deb --no-build
# .rpm (Fedora/openSUSE/RHEL) - requires `cargo install cargo-generate-rpm`
cargo build --release
cargo generate-rpm
# .AppImage - requires `linuxdeploy` (https://github.com/linuxdeploy/linuxdeploy)
cargo build --release
mkdir -p AppDir/usr/bin && cp target/release/turtle64 AppDir/usr/bin/
linuxdeploy --appdir AppDir \
--executable AppDir/usr/bin/turtle64 \
--desktop-file packaging/linux/io.github.derekturtleroe.Turtle64.desktop \
--icon-file assets/icons/turtle64_256.png \
--output appimage
# .flatpak - requires flatpak-builder and the org.freedesktop.Platform//24.08 runtime +
# org.freedesktop.Sdk.Extension.rust-stable//24.08 installed. Generate cargo-sources.json
# first with flatpak-builder-tools' cargo generator (not committed; regenerate from Cargo.lock):
python3 flatpak-cargo-generator.py Cargo.lock -o packaging/flatpak/cargo-sources.json
flatpak-builder --force-clean build-dir packaging/flatpak/io.github.derekturtleroe.Turtle64.ymlThe .deb/.rpm metadata (dependencies, installed files, icons, desktop entry) lives in
Cargo.toml under [package.metadata.deb]/[package.metadata.generate-rpm]. The shared
.desktop file and AppStream metainfo live under packaging/linux/.
Turtle64 is built and tested on FreeBSD (required) plus OpenBSD and NetBSD (best effort) by
.github/workflows/bsd.yml using VMs. It builds from source with a current Rust toolchain; settings and the
log live under ~/.config/turtle64. No prebuilt BSD binaries are released (yet).
cargo run --release --bin turtle64- A ROM is unclassified or read-only: check the file contents and, only if you independently know it is a ROM, choose the correct explicit byte order in the Single ROM inspection mode. An extension alone is not proof.
- A dump is not in the DAT: check that the appropriate, current DAT is loaded. A missing match is not proof of corruption, and a matching hash is not a cryptographic signature.
- An output or rename fails: check the displayed error, destination permissions, and whether a file already exists. Batch conversion and batch conversion refuses to overwrite; rename requires hard-link support.
- Finding logs and settings: the Log tab shows
turtle64.log; settings are insettings.jsonin the same per-user directory. On Windows this is%APPDATA%\Turtle64; on macOS,~/Library/Application Support/Turtle64; elsewhere,$XDG_CONFIG_HOME/turtle64or~/.config/turtle64. - Extracting ROM metadata: choose a trusted, empty destination. Extraction overwrites existing files and does not guard against existing symlinks in the destination.
Logs and settings may contain file paths. Review and redact them before sharing. Never post keys, console-specific files, copyrighted ROMs, or disk images. Report security issues as described in SECURITY.md.
| Module | Responsibility |
|---|---|
rom_format.rs |
Byte-order detection & big-endian conversion |
header.rs |
Standard + Advanced Homebrew ROM header parsing |
cmd.rs |
iQue .cmd content metadata parser |
ique_crypto.rs |
iQue AES-128-CBC / .rec / ticket / SKSA decryption with user-supplied keys |
ique_ecc.rs |
sect233r1 ECDH for iQue ticket title keys |
ique_nand.rs, ique_content_id.rs |
Read-only NAND inspection/ECC comparison and content-ID decoding |
checksum.rs |
CIC identification + legacy IPL3 check code (CRC1/CRC2) |
hashes.rs |
CRC32 / MD5 / SHA-1 / FNV-1a / xxHash hashing |
dat.rs |
No-Intro DAT parsing & verification |
bootcode.rs |
IPL3 boot-code dumping & patching, bootcodes/ folder management |
rom.rs |
Ties the above together into a single RomInfo |
batch.rs |
Multi-threaded batch conversion engine |
dd_geometry.rs |
64DD disk zone/track/LBA geometry tables & math |
dd_cic.rs |
64DD IPL CIC identification |
dd_convert.rs |
Conversion between D64 / NDD / MAME disk formats |
dd_mfs.rs |
MFS filesystem listing & file extraction |
dd_disk.rs |
Ties the above together into a single DdDiskInfo |
header_patch.rs |
Region / PI timing / version header edits (Patch tab) |
cheat.rs |
Validates and applies explicitly mapped static cheat writes |
compare.rs |
Side-by-side ROM comparison |
confidence.rs |
Heuristic confidence estimates, not proof of authenticity |
export.rs, rename.rs |
Batch result TXT/CSV/JSON export and No-Intro renaming |
cjk.rs, jisx0201.rs |
Text decoding for iQue CMD fields and ROM/MFS names |
i18n.rs, fonts.rs, theme.rs |
GUI translations, font selection, and theme styling |
build_info.rs |
Version and release-stage labels |
settings.rs, logging.rs, update.rs |
Persistent settings, crash/log file, opt-in update check |
lib.rs, main.rs, bin/turtle64-cli.rs |
Library exports, GUI entry point, and CLI entry point |
app.rs + app/*.rs |
egui UI and state; individual tabs live in app/ |
For architecture, testing, translations, and contribution guidance, see
CONTRIBUTING.md. Generate local API documentation with
cargo doc --no-deps --open.
cargo testParsers of untrusted input (DAT XML, ROM headers, embedded metadata ZIPs, .cmd, iQue crypto, MFS)
have cargo-fuzz targets (requires a nightly toolchain):
cargo install cargo-fuzz
cargo +nightly fuzz run dat_xml # CI runs every target via .github/workflows/fuzz.yml; also: rom_header, metadata_zip, cmd_file, ique_crypto, dd_mfsA deterministic random-input version of the same checks runs in cargo test.
Turtle64 does not use code from ROM64 or romjudge, but owes a debt of gratitude to both projects — their design and feature set were a huge inspiration for what Turtle64 aims to be. Legacy IPL3 check-code calculation uses the MIT-licensed ipl3checksum library.
The 64DD disk support was written independently from the disk geometry and field layouts publicly documented by LuigiBlood's 64dd wiki and leo64dd_python, and by jkbenaim's leotools (disk-info fields and MFS layout only — no asset-extraction code was used). No source code from those projects, or from Happy-yappH's ddconvert / LuigiBlood's ddconvert_back, was copied; their publicly documented algorithms for physical disk layout were reimplemented fresh in Rust.
One exception to "no code/binaries copied": the 8 bundled
libdragon open-source IPL3
bootcode dumps (r1-r8) are redistributed unmodified. Libdragon's IPL3
is dedicated to the public domain under
the Unlicense,
so bundling the official, signed binaries — rather than reimplementing
them — is both legally fine and the only way to guarantee byte-exact,
hardware-bootable dumps.
Bug reports, feature requests, and pull requests are welcome! Please see CONTRIBUTING.md for how to get set up and what checks CI runs.
Turtle64 is licensed under the GNU General Public License v2.0 or later (GPL-2.0-or-later). See LICENSE.md for the full text.
- Jhynjhiruu — for guidance on ASCII and JIS X 0201 decoding for ROM header titles and MFS names. iQue CMD title text is handled separately.