How can I make a Homebrew App that calls images from a website at random?

Discussion in '3DS - Homebrew Development and Emulators' started by Merch, Jun 20, 2017.

  1. Merch
    OP

    Merch Tutorial God, Apparently.

    Banned
    225
    63
    Feb 9, 2016
    United States
    Music Park, Mushroom Kingdom
    I'm trying to develop a "fleshed out" Homebrew that calls random images from a "specific" website (one which I cannot name for forum reasons & to prevent getting banned) on the top screen, & every time you press DPad (Circle Pad) Right, it brings up a new image, & vice versa with DPad (Circle Pad) Left, which goes back to the previous image. I'm also thinking of having it so that when you Press the A Button, it saves the image to a folder on your SD Card (maybe a little notification to say that it's saved, which I wanted to do a GUI for on the top screen in kind of an iOS Format). The B, START, & HOME Buttons will exit the app, & X will clear the top screen. I don't know what I wanna do with the Y, L, R, & SELECT Buttons just yet (will plan on having n3DS Support, eventually (maybe n3DS gets to scroll through more images for their buttons?)), but I plan on having a GUI with it, which I'm going to look up on my own time. The reason I'm asking Temp is because there doesn't seem to be any tutorials on C on how to call a random image from a website & display them. The ones I come across are usually "call & download", which I do want to some extent, but I want to have the whole package "call, display, & download". Also, I'm not sure if I need to use an HTTP_GET or PHP to actually get the images, because some people are telling me 2 different things, & I can't tell if one side is wrong, the other side is wrong, or everything is wrong. If anyone can help me out on this, please let me know. Thank you for your time. It is really appreciated.



    EDIT: Something I should also note is that I plan on building a .cia file for it. I have the .rsf, banner.bin, & icon.bin for it already, but don't know how to add it to the Makefile.
     
    Last edited by Merch, Jun 20, 2017
    dragonslayer817 likes this.
  2. skullkeeper94

    skullkeeper94 Professional USB Corrupter

    Member
    277
    51
    Jun 21, 2016
    United States
    You can do anything if you know what you're doing, but good luck. Doesn't sound easy :P
     
  3. Merch
    OP

    Merch Tutorial God, Apparently.

    Banned
    225
    63
    Feb 9, 2016
    United States
    Music Park, Mushroom Kingdom
    Yeah, I hear ya. I have somewhat of an idea of what I'm doing; my only problem is trying to put it into action. I've only ever used C once in my life, & that was for a programming class when I was in the 6th Grade. I just graduated from high school on the 26th of May this year, so all of that coding I did was a blur. I keep trying to go back to my memory & try to find the resources I used, but to no avail, I couldn't find any of them. If there's a reliable resource that could help me out on what I need to know, that would be helpful. I saw a couple of tutorials on 3DS Homebrew on YT by the username of kuppla (or kupla? not sure lol), & even looked at Temp's Wiki. None of them except Temp's Wiki had some stuff I could use, but Temp just told me how to build; not how to code 3DS Homebrew. Unless I'm glossing over this stuff, or just am really dyslexic, I can't find a single resource that could potentially help me out. If I had a test application & looked at the source code of it, maybe I could potentially get a refresher of C, because that class I had set me back to the basics of not knowing anything in C, because my memory is that bad lol. The only thing I know is the most basic thing to do in C, which is printf("Hello, World!");. I'm usually an iOS Developer now, because I now have the resources to use Swift & Objective-C efficiently, but when it comes to C, my mind is a blank.
     
  4. skullkeeper94

    skullkeeper94 Professional USB Corrupter

    Member
    277
    51
    Jun 21, 2016
    United States
    I know basic HTML coding :/
    But try and following any tutorial (even though you did) and hopefully it'll kickstart you brain.
    As for coding, you could try looking at the source code for sone homebrew and hopefully you get the gist of it.