libretro / nxengine-libretro

Port of NxEngine to the libretro API. NXEngine is a Cave Story game engine clone
85 stars 89 forks source link

nxengine/extract-auto/sprites_sif.h should become a plain text file. #89

Open crocket opened 2 years ago

crocket commented 2 years ago

Currently, the binary data of sprites.sif resides in nxengine/extract-auto/sprites_sif.h which is not readable by human or sifedit.

https://github.com/andwn/cave-story-md/blob/master/res/resources.res looks like the plain text equivalent to sprites.sif

sifedit from the upstream nxengine project may stop working in the near future. https://github.com/nxengine/sifedit is also fragile and is hated by nxengine-evo's maintainer. Plain text configuration is the way forward.

sprites.sif should become a plain text file such as sprites.txt. Makefile can compile the plain text file into a C header during compile time. nxengine/sprites.txt in retroarch systems folder may override the built-in sprites configuration.

sprites.txt should be well documented with comments so that anyone can edit it.