3ds-examples icon indicating copy to clipboard operation
3ds-examples copied to clipboard

the http example is bad and hard to grasp

Open Ghost-Bit opened this issue 3 years ago • 1 comments

It should focus on how to get raw text, not an image. i got it to do this at one point but the code's been lost in the development of my own program.

Ghost-Bit avatar May 08 '22 20:05 Ghost-Bit

This is the only part that changes if you are downloading an image, everything else applies generally (this is just writing the downloaded data straight to the framebuffer): https://github.com/devkitPro/3ds-examples/blob/master/network/http/source/main.c#L129-L142

You can also use sockets and libcurl: https://curl.se/libcurl/c/ (You would use those the same way as normal + socInit()/socExit())

oreo639 avatar May 09 '22 00:05 oreo639