Skip to content

Added support for SNES SP2/SPC2 format#152

Open
gnaghi wants to merge 1 commit intolibgme:masterfrom
gnaghi:master
Open

Added support for SNES SP2/SPC2 format#152
gnaghi wants to merge 1 commit intolibgme:masterfrom
gnaghi:master

Conversation

@gnaghi
Copy link
Copy Markdown

@gnaghi gnaghi commented Jan 27, 2026

The SP2/SPC2 file format has been created by Kevin Horton to avoid using rar for compression. For example, uncompressed Final Fantasy 6 musics are 5.4MB in SPC format, and 1.4 in SP2.
It is used on Analogue Super NT.

Specifications

@Wohlstand
Copy link
Copy Markdown
Member

Hello!
Looks an interesting thing, but could you share some sample files to let me verify the work of the thing?

@gnaghi
Copy link
Copy Markdown
Author

gnaghi commented Jan 28, 2026

Oh, yes, you’re right :)
There are 2 examples here : https://filebin.net/4at79fsp8bwjuijw
You can see the history of the format here : https://forums.nesdev.org/viewtopic.php?t=8558
Caitsith2 made a compressor, but I’m currently rewriting it for Linux.

@Wohlstand
Copy link
Copy Markdown
Member

Oh, yes, you’re right :) There are 2 examples here : https://filebin.net/4at79fsp8bwjuijw You can see the history of the format here : https://forums.nesdev.org/viewtopic.php?t=8558 Caitsith2 made a compressor, but I’m cussently rewriting it for Linux.

Thanks! I'll test once I finish some other works. And ye, about compressor, my main system is Linux distro, and I could try some on my end just to confirm that it works or some bugs was found. I do also have macOS thing too, so, I could check the work of the thing here too. Just, if just use plain POSIX or typical UNIX-like API, it's almost same on macOS and Linux, and even on xBSD. But on Windows the biggest pain is encoding of file system: while everywhere is just UTF-8, on Windows is ANSI or UTF-16. And so, I typically wrap all file system calls into UTF-8 frontend to keep everything work same as on UNIX-like systems and Windows too.

@gnaghi
Copy link
Copy Markdown
Author

gnaghi commented Jan 28, 2026

The packer is here.

@Wohlstand
Copy link
Copy Markdown
Member

Cool, I'll test it around with files that I do have already, and I guess I'll pick it up for some my own needs if everything goes success. But for now I'll go away from home for a short work.

@gnaghi
Copy link
Copy Markdown
Author

gnaghi commented Apr 7, 2026

Hello, were you able to test it ?

@Wohlstand
Copy link
Copy Markdown
Member

Hello! Right now I am at my workplace, and I am busy for my main work. I could make a try at the evening or tomorrow, for the worst case I will need to try at days off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants