All pastes #835889 Raw Edit

2sf specification

public text v1 · immutable
#835889 ·published 2007-12-29 02:39 UTC
rendered paste body
2sf specs and crap
__________________


2sfs are PSF-style files that contain code from a Nintendo DS game for the purpose of playing back music, sounds and so forth.

_

File layout:

The code section contains a zlib-compressed ROM. The format of this section is

4 bytes unsigned int: location
4 bytes unsigned int: size
xx bytes: the data itself

Multiple sections can be defined.

The reserved sections will contain a savestate converted from the standard save format put forth by Desmume. This is not required in all rips but due to the complexity of the NDS hardware makes life easier.

Basic PSF specifications (libs, tags, etc) apply to this format.