Search found 211 matches

by mtheall
Fri Sep 28, 2012 9:39 pm
Forum: devkitPPC
Topic: Is devkitppc the right tool for this project? Help please
Replies: 5
Views: 11351

Re: Is devkitppc the right tool for this project? Help pleas

I have used GlovePie for WiiMote use on my computer. It works great.
by mtheall
Thu Sep 27, 2012 10:36 pm
Forum: DS/DSi Development
Topic: Problems listing a directory in nitroFS
Replies: 3
Views: 9530

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 ...
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: 29201

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: 18637

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 ...
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: 29201

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 ...
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: 29201

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: 29201

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: 15006

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 ...
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: 29201

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' [-Wunused ...