Search found 210 matches

by mtheall
Thu Sep 27, 2012 10:36 pm
Forum: DS/DSi Development
Topic: Problems listing a directory in nitroFS
Replies: 3
Views: 8013

Re: Problems listing a directory in nitroFS

I don't see anything immediately problematic in this code. Possibly a bug in nitro filesystem code. Although there is one case in your code that you should be doing closedir(): if(num < 2) { Log::Debug("No songs found\n"); closedir(pdir); // whoops you forgot to close here return 0; } I wi...
by mtheall
Thu Sep 27, 2012 3:09 pm
Forum: Gamecube/Wii Development
Topic: Simple program gone wrong... Problem with devkitpro compiler
Replies: 14
Views: 22698

Re: Simple program gone wrong... Problem with devkitpro comp

A value never gets destroyed. A variable is storage for a value.
by mtheall
Wed Sep 26, 2012 8:52 pm
Forum: Bug Reports
Topic: default-arm7-src-0.5.24.tar.bz2 404
Replies: 7
Views: 15664

Re: default-arm7-src-0.5.24.tar.bz2 404

I fixed a bunch of this crap, thanks to your findings. Currently, maxmod will fail, but WinterMute will be fixing that soon. After that, the buildscripts should work no problem, assuming you have all the prereqs (I added libusb to the README) http://devkitpro.git.sourceforge.net/git/gitweb.cgi?p=dev...
by mtheall
Wed Sep 26, 2012 3:55 pm
Forum: Gamecube/Wii Development
Topic: Simple program gone wrong... Problem with devkitpro compiler
Replies: 14
Views: 22698

Re: Simple program gone wrong... Problem with devkitpro comp

As you guys said, yes, any variable created inside { and } is used only inside { and } and then destroyed as it gets to }. That's exactly right. Pretend that there is a variable (with a value of 5) created outside that scope that has been set to one. Then that variable is changed to another value (...
by mtheall
Wed Sep 26, 2012 2:35 am
Forum: Gamecube/Wii Development
Topic: Simple program gone wrong... Problem with devkitpro compiler
Replies: 14
Views: 22698

Re: Simple program gone wrong... Problem with devkitpro comp

Do int a = 0 on the outside. Then inside do a=5.
by mtheall
Wed Sep 26, 2012 2:28 am
Forum: Gamecube/Wii Development
Topic: Simple program gone wrong... Problem with devkitpro compiler
Replies: 14
Views: 22698

Re: Simple program gone wrong... Problem with devkitpro comp

Of course! Just perform the declarations above (outside of) the if blocks.
by mtheall
Tue Sep 25, 2012 11:25 pm
Forum: Gamecube/Wii Development
Topic: Need help with cursors please
Replies: 6
Views: 11677

Re: Need help with cursors please

static void *xfb = NULL; This line? It does the following things: 1. Declare a variable xfb 2. xfb is of type void* (a pointer to void, i.e. a pointer to generic/unknown type) 3. Assign the value NULL to xfb (NULL is ((void*)0) in GNU) 4. xfb is static (other translation units will never be able to...
by mtheall
Tue Sep 25, 2012 8:40 pm
Forum: Gamecube/Wii Development
Topic: Simple program gone wrong... Problem with devkitpro compiler
Replies: 14
Views: 22698

Re: Simple program gone wrong... Problem with devkitpro comp

if (bp1 & WPAD_BUTTON_MINUS ) { int a = 5; // you declare a new variable 'a' buttoncheck++; } // 'a' ceases to exist after this curly brace. it now goes "out of scope" c:/users/n**/desktop/devkitpro/examples/wii/template/source/template.cpp:128:8: warning: unused variable 'a' [-Wunuse...
by mtheall
Tue Sep 25, 2012 3:14 am
Forum: devkitARM
Topic: other languages?
Replies: 2
Views: 6651

Re: other languages?

Sure, java if you have a java vm for your platform. I don't know what's required for Ada and Go. But C, C++ (and i think obj-c?) definitely work.