Skip to content

Xantiem/sav-and-srm-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sav and srm converter

Simple Python utility ot convert between .sav and .srm files (file types commonly used used in emulators such as MyBoy and the mGBA Retroarch emulator.

It can be used either imported as a module, to be used in your own code. Or the converter.py file can be run via the terminal.

Usage:

Converting from the command line:

python3.8 converter.py path/to/file.srm
python3.8 converter.py path/to/file.sav

If your path contains spaces, use "``". The file type will automatically be detected and converted.

As a module:

Only one function is provided. The convert(filename) command.

To convert to .sav file:

import SrmToSav
SrmToSav.convert(filename)

To convert to .srm file:

import SavToSrm
SavToSrm.convert(filename)

WARNING: I do not guarantee that this will always work, however from my testing, it seems to.

About

Convert .sav to .srm files, and .srm files to .sav

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages