I'd like to put this on the in_cube page so people might be able to find it from there, how to you want me to handle that? How about a brief description and a link to that page?
However you want is ok with me, your suggestion sounds fine, and if you want to mirroe the util I have no problems with that either. :) I'm quite easy in that sense.
hmmm... it seems it doesn't use as little RAM as I thought. Can anybody look through the source and tell me any obvious flaws I might be making, with the whole RAM management thing?
PS: It seems that you can load in a raw GCM Game Cube image file, and it will extract any DSPs it find.... until it crashes due to running out of RAM >_>
wow... looks like you're right... DOH! Well I actually can't do anything about it now as I don't seem to have the file handy. >_> When I can I'll put it on my flash card and upload it... or I might get my inet connection at home before then...
You really shouldn't have the declaration for dummy in main.h, it should be declared in main and then put extern cdspfile dummy; in main.h.
I *really* don't like dummy.
Your memory is still being taken up by realdsp, which is never used (that I can see).
The crash may come from the fact that the DSPs will not necessarily be at the end of the image file. Thus the last one you extract will potentially take gigabytes of memory, which could fail.