
Re: Black screen error in custom channels (code dump on exit)
You've still got the end of main.cpp missing. The end of it should look like this:
Code:
//Actually change the screen when nothing is visible
if((fadeTo != NULL || fadeToExit) && fadeOpacity == 255) {
if(fadeToExit) {
exit(0);
return 0;
}
if(currentScreen != NULL)
delete currentScreen;
currentScreen = fadeTo;
Controller::instance()->SetListener(currentScreen);
fadeTo = NULL;
}
}
return 0;
}
But before you start messing with the code, make sure you can compile it as downloaded from googlecode. Then once that's working, edit the code and recompile, this way it's easier to figure out where it's going wrong.
If you can't get it to compile, delete your libogc folder from c:\devkitpro\ and then put this in it's place. Make sure it
doesn't end up as c:\devkitpro\libogc\libogc\stuff.