Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.01 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.01 KB

py_spcID666

Python 2.7 script to read and modify the ID666 tag, base and extended (xid6), from a SNES SPC file.

Contributions welcome!

Usage

From command line:

$ python spcid666.py snesmusic.spc

As a module:

import spcid666
tag = spcid666.parse('snesmusic.spc')
tag.base.game = 'Ramoutz'
spcid666.save(tag, 'new_file.spc') #warning: saving xid6 not supported yet! xid6 will be lost!

Development with PyCharm

Set the src directory as source root. Then run Unittest or pytest in the tests directory. For coverage report, you can use pytest-cov and use these arguments: --cov=../src --cov-report html

More info

https://wiki.superfamicom.org/spc-and-rsn-file-format

http://www.johnloomis.org/cpe102/asgn/asgn1/riff.html

Tests SPCs were generated by Shiru's SNES GSS with its own test projects.

Smash It is a free demo by elix.

License

This project is GPL3 licensed.