Crates.io | ra_mp64_srm_convert |
lib.rs | ra_mp64_srm_convert |
version | 1.1.1 |
source | src |
created_at | 2021-09-20 19:41:00.442286 |
updated_at | 2024-09-04 00:24:46.412753 |
description | A simple application to convert to and from Retroarch Mupen64 save file. |
homepage | https://github.com/drehren/ra_mp64_srm_convert |
repository | https://github.com/drehren/ra_mp64_srm_convert |
max_upload_size | |
id | 454122 |
size | 43,061 |
A simple converter for Retroarch's Mupen64Plus core save files; from eep, mpk*, sra or fla to srm (or viceversa).
When a SRM file is split into its contents, only those contents with data will be created.
This is a console application. For a graphical one see ramp64-convert-gui, for a web-based one see ramp64-convert-web.
$ ra_mp64_srm_convert A.srm B.mpk B.eep C.fla C.srm D.srm D.fla F.mpk1 F.mpk3
Output:
--overwrite
is set)--overwrite
), D.sra and/or D.fla; D.mpk1 D.mpk2 D.mpk3 D.mpk4 (all new)Note: This program will only overwrite existing files if --overwrite
is given.
$ ra_mp64_srm_convert -c B.mpk B.eep C.fla F.mpk3
Output:
$ ra_mp64_srm_convert -c B.mpk B.eep C.fla F.mpk3 C.srm
Output:
C.srm
$ ra_mp64_srm_convert -s A.srm
Output:
$ ra_mp64_srm_convert -s B.mpk B.eep C.fla F.mpk3 A.srm
Output:
Given a set of input files, the program will:
-c
or -s
flags: Convert them based on the first file of the group:--overwrite
is setWithout arguments, the program will group all files based on their names (same names), and then proceed to create SRM or split based on the type of the first file of the group.
For example
$ ra_mp64_srm_convert A.srm B.mpk B.eep C.fla C.srm D.srm D.sra F.mpk1 F.mpk3
will output the following:
An *.mpk file will always be assigned to the first player controller pack.
If one of the arguments -c
or -s
is passed, then the program will force a Creation or a
Split, respectively. It will consider all files, irrespective of their names as inputs or outputs
depending in their save type.
This will only operate for a single SRM file.
Use -c
or --create-srm
Inputs: *.eep, *.fla, *.sra and/or *.mpk(1-4)
Output: *.srm
For example
$ ra_mp64_srm_convert -c A.srm B.mpk B.eep C.fla C.srm D.srm D.fla F.mpk1 F.mpk3
will create a SRM at D.srm using B.eep, D.fla, F.mpk1, F.mpk3
Use -s
or --split-srm
Input: *.srm
Outputs: *.eep, *.fla, *.sra and/or *.mpk(1-4)
For example
$ ra_mp64_srm_convert -s A.srm B.mpk B.eep C.fla C.srm D.srm D.fla F.mpk1 F.mpk3
will split D.srm into D.sra, B.eep, D.fla, F.mpk1, D.mpk2, F.mpk3 and/or D.mpk4
--merge-mempacks
was set, and the checksum fails, then the program will
assume that the file is a SRM save.Save type | Extension(s) | Size(s) |
---|---|---|
N64 - EEPROM | *.eep | 512 B, 2 KiB |
N64 - SRAM | *.sra | 32 KiB |
N64 - FlashRAM | *.fla | 128 KiB |
N64 - Mempack | *.mpk, *.mpk(1,2,3,4) | 32 KiB |
RA - SRM | *.srm | 290 KiB |
A simple converter for Retroarch's Mupen64Plus core save files
Usage: ra_mp64_srm_convert.exe [OPTIONS] [FILE]...
Arguments:
[FILE]... The input file(s)
Options:
-v, --verbosity <VERBOSITY> Sets the output verbosity [default: normal] [possible values: quiet, normal, debug]
-c, --create-srm Forces the creation of a SRM file from all the given files
-s, --split-srm Forces the split of an existing SRM to all the given files
-m, --merge-mempacks When splitting a SRM, merge all controller packs in one file
--overwrite If set, any existing file will be overwritten
-o, --output-dir <OUTPUT_DIR> Sets the output directory
--change-endianness If set, EEP and FlashRAM bytes will be swapped
-i, --input-dir <INPUT_DIR> Use this flag to convert files from directory
-h, --help Print help
-V, --version Print version
Requirements:
Simply use cargo
to build:
$ cargo build --release
MIT