Homebrew Graphical Hello World for 3.0.0

vgmoose

Well-Known Member
OP
Member
Joined
Jan 31, 2016
Messages
364
Trophies
1
Website
github.com
XP
3,387
Country
United States
Updated to work with all firmwares now!

There are better ways to display text on screen now, but this program should still serve as a simple demo for people who want to get started.



I am in the process of porting some of my Wii U Homebrew to the Switch. While doing so, I found that I needed to be able to graphically display text on screen. I put the font drawing code into an easy to read hello world program, so that if people on 3.0.0 want to learn some simple programing, this may be a good start.

Link and instructions: https://github.com/vgmoose/sdl-hello-world

I can help provide support in this thread if people have issues getting this setup on their Switch/computer.

Also note that as of this time of writing, these instructions may change or become outdated as new stuff comes out. Particularly, drawing text this way isn't a great solution but it should be okay for a quick demo.
 
Last edited by vgmoose, , Reason: updated to 5.x

EvilG31

Member
Newcomer
Joined
Dec 31, 2017
Messages
21
Trophies
0
Age
36
XP
72
Country
United States
hello ! I use pegaswitch for the first time and when I type
evalfile usefulscripts/SetupNew.js
I get :
'no output'
why ?

Hey - I think you asked this in another thread too. 'no output' is normal - and you must run that or NROs won't load when you use runnro. (at least, that's what happened in my case.)

I figure the more threads we have a solution in, the better.
 
  • Like
Reactions: Xyphoseos

vgmoose

Well-Known Member
OP
Member
Joined
Jan 31, 2016
Messages
364
Trophies
1
Website
github.com
XP
3,387
Country
United States
For posterity, I have updated this program to work with 5.x. It also now supports both libtransistor and libnx, and you should be able to compile and run it with either! The readme is updated with instructions in case anyone wants to give this a shot.

Download: https://github.com/vgmoose/sdl-hello-world/releases
 

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
6,174
Trophies
2
Age
45
XP
7,487
Country
Germany

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Veho @ Veho:
    "What do you mean this doesn't work like a train?"
  • Veho @ Veho:
    "Look, there's room. We fit. Go."
  • Veho @ Veho:
    I think it's because 99% of the time the half inch is enough to keep them afloat.
  • Sicklyboy @ Sicklyboy:
    lmao my ubisoft account
    dUohMeF.png
  • Veho @ Veho:
    Much gamer, such dedication.
  • Veho @ Veho:
    An entire zero seconds.
  • Sicklyboy @ Sicklyboy:
    holy moly this account is old
    IMLUDAx.png
  • Veho @ Veho:
    Your account can drink and smoke and do porn.
  • Sicklyboy @ Sicklyboy:
    Not in the bastion of freedom known as the US of A it can't :P
  • Sicklyboy @ Sicklyboy:
    Well it could do porn, but it can't drink or have a smoke after
  • Veho @ Veho:
    Bummer.
  • Veho @ Veho:
    (Barely even know 'er)
    +1
  • Sicklyboy @ Sicklyboy:
    Freedom :D
  • realtimesave @ realtimesave:
    @Sicklyboy I happened to have ubisoft app already installed, so I just logged in and got the game and played with @Skv0ra
  • Veho @ Veho:
    But it could drink and smoke in the homeland of Ubisoft, that counts.
  • Sicklyboy @ Sicklyboy:
    @realtimesave, uuugggghhhhhhh sounds like multiplayer doesn't work on Linux
  • Sicklyboy @ Sicklyboy:
    Because of the anticheat
  • Plazorn @ Plazorn:
    That's been a constant issue on linux
  • Sicklyboy @ Sicklyboy:
    Yep :/
  • Veho @ Veho:
    They know Linux users are filthy cheaters.
    +2
  • Sicklyboy @ Sicklyboy:
    Shouldn't be, because these anti cheat suites pretty much all natively support linux if I'm not mistaken, and it's down to a literal checkbox that they're not ticking.
  • Plazorn @ Plazorn:
    Would you really install a kernel level anticheat program if it existed though? I sure wouldn't.
  • Sicklyboy @ Sicklyboy:
    And yet, here we are
  • Plazorn @ Plazorn:
    It's a dilemma
    +1
  • realtimesave @ realtimesave:
    @Sicklyboy oh yea that anti cheat stuff doesn't like certain things :|
    realtimesave @ realtimesave: @Sicklyboy oh yea that anti cheat stuff doesn't like certain things :|