https://github.com/ryanfb/copydatrom
Incredibly simple DAT-based ROM renaming utility
https://github.com/ryanfb/copydatrom
dat emulation rom roms romset
Last synced: 6 months ago
JSON representation
Incredibly simple DAT-based ROM renaming utility
- Host: GitHub
- URL: https://github.com/ryanfb/copydatrom
- Owner: ryanfb
- License: mit
- Created: 2020-03-13T02:20:06.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-15T15:19:14.000Z (over 1 year ago)
- Last Synced: 2024-05-16T04:24:00.876Z (over 1 year ago)
- Topics: dat, emulation, rom, roms, romset
- Language: Ruby
- Size: 33.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CopyDATROM
This is designed to be an incredibly simple ROM "renaming" (actually just copying while renaming) utility for use with DAT files. The other tools I found for dealing with DAT files and ROM management/renaming/organization were more confusing to me than just giving up and writing this.
## Usage
bundle exec ./copydatrom.rb datfile.dat rom-source-dir rom-dest-dir
CopyDATROM will then:
* parse `datfile.dat`
* check that `rom-dest-dir` exists (and try to create it if not)
* recursively go through every file in `rom-source-dir` and:
* calculate its SHA1 hash
* check for a matching SHA1 hash in `datfile.dat`
* copy it to `rom-dest-dir` with the corresponding ROM name specified in `datfile.dat`, if a match is found
That's it! All your files in `rom-source-dir` should remain completely untouched.
CopyDATROM will **not**:
* modify or delete your source files
* go inside zip/7z/rar files
* generate zip/7z/rar files
* generate split/merged/non-merged sets
* generate statistics about how many ROMs you have or are missing
* calculate CRC32/MD5 hashes (your DAT file must have SHA1 hashes)
Pull requests for some of these may be accepted, if they can maintain the tool's simplicity-of-use.
If you want to make a "1G1R" (one game, one ROM) romset from a romset with many possible duplicates and disorganized naming (i.e. GoodTools/GoodSets romsets), you can use CopyDATROM with no-intro DAT files to first rename/copy your ROMs into no-intro's naming, then use the [1g1r-romset-generator](https://github.com/andrebrait/1g1r-romset-generator) on the renamed directory.