Trying to get the best way to get to the STDOUT from my game.
-outputting to STDOUT shows up in PSPLINK until SDL is set up and then nothing else (nothing in stdout/stderr.txt). Without PSPLINK the stdout goes nowhere.
-pspDebugScreenPrintf shows up correctly in SDL (no GL) but so do the graphics, so I can't read it.
-pspDebugScreenPrintf shows up incorrectly in SDL+PSPgl (wrong video mode? I can barely make out what its saying)
Any ideas, suggestions?
SDL+PSPgl stdout/debugging
Re: SDL+PSPgl stdout/debugging
SDL reopens stdout/stderr, which probably kills the psplink redirection. You could rebuild SDL with NO_STDIO_REDIRECT defined, or don't link libSDLmain (and instead do the PSP-specific setup yourself). Now that psplink works so well, it might be worth just removing that stdout/stderr redirection from SDL completely... ?neuroscr wrote:-outputting to STDOUT shows up in PSPLINK until SDL is set up and then nothing else (nothing in stdout/stderr.txt). Without PSPLINK the stdout goes nowhere.
Re: SDL+PSPgl stdout/debugging
NO_STDIO_REDIRECT works. Thanks.jimparis wrote:SDL reopens stdout/stderr, which probably kills the psplink redirection. You could rebuild SDL with NO_STDIO_REDIRECT defined, or don't link libSDLmain (and instead do the PSP-specific setup yourself). Now that psplink works so well, it might be worth just removing that stdout/stderr redirection from SDL completely... ?
-
- Posts: 339
- Joined: Thu Sep 29, 2005 4:19 pm