Repository navigation
Maintenance release: compiler and library fixes
Add a way to know when a music is over
smconv and constify rewritten in C.
Rebuild your projects after updating: the C library (libc) and the sound driver changed.
Compiler (816-tcc)
- **
&&and||could take the wrong branch. - A pointer is null only if its bank is 0 too.
$7F:0000was seen asNULLbyif (p),!p,p == NULLandsprintf("%s") - 816-opt: fixed a peephole rule that could reorder two stores before an instruction that reads the accumulator.
Sound (SNESMOD)
- New
spcSetMusicLoop(u8 loop):0plays the next module once and stops at its end,1(default) restarts it from the beginning as before. - New
u8 spcIsMusicPlaying(void):1fromspcPlay/spcResumeMusicuntil the module is stopped, paused or has ended.
Library
initMousereturned withrtsinstead ofrtl(#353).- Variable-width font text was drawn on the wrong line (#355).
Tools
- tmx2snes:
.tmjmaps saved by Tiled 1.12 no longer fail with "Cannot load map" (#341). - constify: rewritten in C.
- smconv: rewritten in C.
- constify and smconv use the same command line parser as gfx4snes (
-hfor help).