Python 2.7 script to read and modify the ID666 tag, base and extended (xid6), from a SNES SPC file.
Contributions welcome!
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!
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
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.
This project is GPL3 licensed.