#177561 - strat - Thu Aug 30, 2012 10:53 am
I've been thinking about adding an image loader to Animanatee but it doesn't build correctly on release 41; the binary just crashes when trying to run on the hardware without showing anything. It does build correctly on an older devkit release that by chance I had installed on another computer, but since older releases aren't readily available the mystery needs to be solved.
There are two changes to the source that are needed so 41 builds anything at all: removing -fno-fpu (linker option) from the makefile and changing 'diropen', 'dirclose' in Game.c to 'opendir', 'closedir'. I'm assuming that option just told the linker not to include an fpu library and the latter change shouldn't affect the application starting up in any case. One poster on the Devkitpro forum suggested removing irqInit call from the Arm9 Main and any custom FIFO code, but neither is in the source.
Also I tried dldi patching it even though the binary released by DekuTree didn't need to be patched. I've been looking at the devkit examples for clues but nothing stands out.
There are two changes to the source that are needed so 41 builds anything at all: removing -fno-fpu (linker option) from the makefile and changing 'diropen', 'dirclose' in Game.c to 'opendir', 'closedir'. I'm assuming that option just told the linker not to include an fpu library and the latter change shouldn't affect the application starting up in any case. One poster on the Devkitpro forum suggested removing irqInit call from the Arm9 Main and any custom FIFO code, but neither is in the source.
Also I tried dldi patching it even though the binary released by DekuTree didn't need to be patched. I've been looking at the devkit examples for clues but nothing stands out.