forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

stdout ?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
DickyDick



Joined: 21 Aug 2004
Posts: 29

PostPosted: Wed Sep 20, 2006 2:55 am    Post subject: stdout ? Reply with quote

I run this small program in PSPLINK, but nothing is shown at the screen..
Did I forget something?

tst.c

... all the includes

PSP_MODULE_INFO("tst", 0x1000, 1, 1);
PSP_MAIN_THREAD_ATTR(0);

int main (int argc, char ** argv)
{
pspDebugInstallStdoutHandler(pspDebugScreenPrintData);

pspDebugScreenSetTextColor(0xffffff);
pspDebugScreenSetBackColor(0x000000);
pspDebugScreenInit();
fprintf (stdout,"Hello world\n");
sceKernelDelayThread(5*1000000); // 5 sec
sceKernelExitGame();
return 0;
}
Back to top
View user's profile Send private message
DickyDick



Joined: 21 Aug 2004
Posts: 29

PostPosted: Wed Sep 20, 2006 3:32 pm    Post subject: Reply with quote

Hmm looks like it only happens with PSPLINK.. as EBOOT.PBP it works

perhaps it eats the stdout or i need a new version
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Wed Sep 20, 2006 3:43 pm    Post subject: Reply with quote

Yes psplink eats stdout, did you not see the text appear on the psplink console which is where stdout should really go ? :)
Back to top
View user's profile Send private message
DickyDick



Joined: 21 Aug 2004
Posts: 29

PostPosted: Sun Sep 24, 2006 6:18 pm    Post subject: Reply with quote

TyRaNiD wrote:
Yes psplink eats stdout, did you not see the text appear on the psplink console which is where stdout should really go ? :)


the debug init screen wiped it all away in a split second... ;-)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group