More ctrulib fixes

This commit is contained in:
CTurt 2015-03-21 09:53:00 +00:00
parent 850dcdf7c7
commit da4d8ce698

View file

@ -30,14 +30,18 @@ void hang(char *message) {
}
}
int main(void) {
srvInit();
int main(void) {
/*srvInit();
aptInit();
hidInit(NULL);
//irrstInit(NULL);
acInit();
gfxInit();
gfxSet3D(false);
gfxSet3D(false);*/
gfxInitDefault();
consoleInit(GFX_BOTTOM, NULL);
if(setjmp(exitJmp)) goto exit;
@ -138,6 +142,16 @@ int main(void) {
sendKeys(kHeld, circlePad, touch);
receiveBuffer(sizeof(struct packet));
/*u8 *frame = gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL);
switch(rcvBuf.command) {
case SCREENSHOT:
//drawStringFramebuffer(frame, 10, 10, "R");
break;
}*/
if((kHeld & KEY_START) && (kHeld & KEY_SELECT)) longjmp(exitJmp, 1);
gfxFlushBuffers();
@ -153,11 +167,12 @@ int main(void) {
fsExit();
gfxExit();
acExit();
/*acExit();
//irrstExit();
hidExit();
aptExit();
srvExit();
srvExit();*/
return 0;
}