A little tool I wrote to aid me in the future of WonderSwan/Color development.
gba2wsc converts the output of gfx2gba to a WonderSwan Color compatible graphics.
Source included.
Download here.
.funkyblue { color:#0000AF; }
A little tool I wrote to aid me in the future of WonderSwan/Color development.
gba2wsc converts the output of gfx2gba to a WonderSwan Color compatible graphics.
Source included.
Download here.
Hi, just took a quick look at the code from gba2wsc. It looks like you don’t free the allocated memory on the heap. Noticed that in fixMap() and fixPalette().
I would also open the input files in “rb” mode, rather than just “r”. I remember in one of my applications I also used “r” to read binary files and it sometimes didn’t work properly.
Best,
Peter
Peter,
Having “b” in the second parameter of fopen tells DOS (and perhaps other systems) not to process newlines and other command characters at all. Linux does not fiddle with such things, thus it is not required. Since LiraNuna tests on a Linux system, he probably forgot to add this flag for compatibility.
Just thought you might want to know why you should add the binary flag in your fopen statements.
(BTW, LiraNuna, check your e-mail…!)