rust3ds/ctru-rs

Screenshots with Luma sometimes don't show console output

ian-h-chamberlain opened this issue · 4 comments

I haven't figured out why, but it seems like printing to the console sometimes isn't written to whatever buffer Luma uses when it takes a screenshot. It would be nice if we can work around this, since taking screenshots is one of the few ways available to share debug state of a hardware device.

Meziu commented

This is more of a problem with libctru than with ctru-rs, I don't even know how much we can tamper with it. We can just search around for any documentation of this issue.

@ian-h-chamberlain How did you get the screenshots in this PR? #41

Meziu commented

Looks like a stdout redirection. It’s supported using the latest Homebrew Menu and 3dslink. I didn’t understand how to use it though.

@ian-h-chamberlain How did you get the screenshots in this PR? #41

To be honest, I'm not sure what was different in this one... I just took a normal Luma screenshot with the code shown in that PR, as far as I remember. I thought originally maybe wide mode had something to do with it, or perhaps the lack of flushing / flipping buffers in the busy loop at the end of the test runners? I can try experimenting to see what makes it work or not.