Discuss the development of new homebrew software, tools and libraries.
	Moderators: cheriff, TyRaNiD
			
		
		
			- 
				
																			 DickyDick
- Posts: 29
- Joined: Sat Aug 21, 2004 2:28 am
						
					
													
							
						
									
						Post
					
								by DickyDick » 
			
			
			
			
			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;
}
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			 DickyDick
- Posts: 29
- Joined: Sat Aug 21, 2004 2:28 am
						
					
						
		
													
							
						
									
						Post
					
								by DickyDick » 
			
			
			
			
			Hmm looks like it only happens with PSPLINK.. as EBOOT.PBP it works
perhaps it eats the stdout or i need a new version
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			 TyRaNiD
- Posts: 907
- Joined: Sun Jan 18, 2004 12:23 am
						
					
						
		
													
							
						
									
						Post
					
								by TyRaNiD » 
			
			
			
			
			Yes psplink eats stdout, did you not see the text appear on the psplink console which is where stdout should really go ? :)
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			- 
				
																			 DickyDick
- Posts: 29
- Joined: Sat Aug 21, 2004 2:28 am
						
					
						
		
													
							
						
									
						Post
					
								by DickyDick » 
			
			
			
			
			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... ;-)