rust3ds / ctru-rs

Rust wrapper for libctru
https://rust3ds.github.io/ctru-rs/
Other
116 stars 17 forks source link

Screenshots with Luma sometimes don't show console output #31

Open ian-h-chamberlain opened 2 years ago

ian-h-chamberlain commented 2 years ago

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 2 years ago

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.

AzureMarker commented 2 years ago

@ian-h-chamberlain How did you get the screenshots in this PR? https://github.com/Meziu/ctru-rs/pull/41

Meziu commented 2 years ago

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 commented 2 years ago

@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.