Is there a example homebrew that has a simple text console?

Discussion in 'Wii U - Homebrew' started by shutterbug2000, Sep 19, 2016.

  1. shutterbug2000
    OP

    shutterbug2000 Cubic NINJHAX!

    Member
    1,078
    2,087
    Oct 11, 2014
    United States
    It may sound like a weird request, but if I can find that, I might have something I can release, possibly even tonight!
     
  2. CJB100

    CJB100 Programmer, Media Producer, Hardware Repair

    Member
    489
    330
    May 8, 2016
    United States
    USA
    I too would like to know this. I am pretty sure there is one somewhere.
     
    shutterbug2000 likes this.
  3. VinsCool

    VinsCool Insecure

    Member
    GBAtemp Patron
    VinsCool is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    11,515
    26,971
    Jan 7, 2014
    Canada
    Another World
    The example hello world maybe?
     
  4. shutterbug2000
    OP

    shutterbug2000 Cubic NINJHAX!

    Member
    1,078
    2,087
    Oct 11, 2014
    United States
    The problem with that is that it uses OSFatal, which iirc means it stops the program.
     
  5. CJB100

    CJB100 Programmer, Media Producer, Hardware Repair

    Member
    489
    330
    May 8, 2016
    United States
    USA
    Yes but where lol I know there were a lot of examples in some file I downloaded months back but I have since deleted my downloads folder and can't seem to locate Quark's guide either.
     
  6. TheZander

    TheZander member

    Member
    1,083
    772
    Feb 1, 2008
    United States
    What about the game that user with the harley avatar made? doesnt the hbl let you exit back to main screen?
     
  7. CJB100

    CJB100 Programmer, Media Producer, Hardware Repair

    Member
    489
    330
    May 8, 2016
    United States
    USA
    Wouldn't you be able to stave off this call by waiting for some kind of user input, either a sentry controlled loop or some equivalent to a new line prompt?
     
  8. shinyquagsire23

    shinyquagsire23 SALT/Sm4sh Leak Guy

    Member
    1,961
    3,231
    Nov 18, 2012
    United States
    Las Vegas
    OSScreenPutFontEx is what you want, ftpiiu uses that for it's printing.
     
  9. Bug_Checker_

    Bug_Checker_ GBAtemp Advanced Fan

    Member
    950
    444
    Jun 10, 2006
    United States
    CJB100 likes this.
  10. pwsincd

    pwsincd Garage Flower

    Member
    3,305
    1,702
    Dec 4, 2011
    Manchester UK
    speak to @rw-r-r_0644

    infact , with regards to your ealier message maybe join him on irc.
     
    Last edited by pwsincd, Sep 19, 2016
    rw-r-r_0644 and CJB100 like this.
  11. QuarkTheAwesome

    QuarkTheAwesome Working for Hugs

    Member
    765
    1,867
    Apr 19, 2015
    Australia
    Stuck in the PowerPC
    This is the guide you're looking for (I think) but keep in mind it's nowhere near completion.
     
    rw-r-r_0644 and CJB100 like this.
  12. rw-r-r_0644

    rw-r-r_0644 GBAtemp Fan

    Member
    327
    369
    Jan 13, 2016
    Italy
    You may want to look here: https://github.com/rw-r-r-0644/WiiU-HelloWorld-Easy
    I did this yesterday for some reason (maybe just because it was fun to make :P); basically (it's a W.I.P.) it tries to provide a library to make homebrew as easy as a windows constole application. Many things do not work yet, but this is the main.c file:
    Code:
    uprintf("Hello World!");
    while(1) {
        updatePressedButtons(); //Update buttons state
        if(isPressed(VPAD_BUTTON_HOME)) break; //Check if home is pressed
    }
    uprintf("Exiting...");
    return 0;
    It's quite easy. Anyway, as I said, it's still a W.I.P. and probably would need to be implemented as proper libraries (and moved to WUT for future wii u develops).
    Also '\n' (new line) seems to still be not working (I'm trying to fix that, it's just because OSScreenPutFontEx doesn't seem to care about new line) - Fixed (in a bad, hacky way)
    You can call any wii u function without find_export and a super-commented example will be available soon(tm?) - Now available at: https://github.com/rw-r-r-0644/lib_easy_example__UClick. As of now I'm still trying to fix things and adding more functions
     
    Last edited by rw-r-r_0644, Sep 19, 2016
    justsomebun, Coc4tm and CJB100 like this.
  13. depaul

    depaul GBAtemp Regular

    Member
    272
    148
    May 21, 2014
    France
    Sorry does the Wii U use C programming language? or it does depend on the SDK used?
     
  14. rw-r-r_0644

    rw-r-r_0644 GBAtemp Fan

    Member
    327
    369
    Jan 13, 2016
    Italy
    You can either use C or C++ on both wut or dimoks libraries