LiraNuna’s Development Blog
gba2wsc Released

Posted on Friday 22 December 2006

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.


2 Comments for 'gba2wsc Released'

  1.  
    December 23, 2006 | 19:02
     

    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

  2.  
    Strager Neds
    December 26, 2006 | 18:46
     

    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…!)

Leave a comment

(required)

(required)


Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post |