Homebrew [Release] Hello World

JoostinOnline

Certified Crash Test Dummy
OP
Member
Joined
Apr 2, 2011
Messages
11,005
Trophies
1
Location
The Twilight Zone
Website
www.hacksden.com
XP
4,323
Country
United States
This is just a template for anyone who wants to get started on text-based 3DS homebrew, and doesn't care about it looking good. It is the bare minimum for running an app, but notes are included. It is of no use to people who don't want develop apps.

Download

How to use
You need some basic knowledge of C of course, but I've included some notes in the code. Here are some commands:
  • make: build a 3dsx (NINJHAX) and cia (Gateway) executable.
  • make clean: delete the previously built files.
  • make run: Runs the homebrew file in 3dmoo so you can at least know if it works.
How to make it look nicer
Using printf is easy, but it's not pretty. Using colors can change that. I made a file to easily do just that.
  1. Save this as color.h in the source folder.
  2. Add #include "color.h" to the top of your source file.
  3. Use SET_COLOR(x) whenever you want to switch the font/background color, where x is any one of the colors listed in color.h
PS: I'm aware that another Hello World app exists, but it is far more complex and uses a custom font.
 
Last edited by JoostinOnline,

JoostinOnline

Certified Crash Test Dummy
OP
Member
Joined
Apr 2, 2011
Messages
11,005
Trophies
1
Location
The Twilight Zone
Website
www.hacksden.com
XP
4,323
Country
United States
It's because you have a space in one of the folder names. Change "ctrulib-master (1)" to "ctrulib-master", or anything else without spaces. Run "make clean" before "make install", just to be safe.

Btw, to copy everything in command prompt, right-click on the text, choose Select All, right-click again, then paste it anywhere.
 

flarn2006

Well-Known Member
Member
Joined
Apr 6, 2014
Messages
394
Trophies
0
Age
29
XP
513
Country
United States
  • Like
Reactions: JoostinOnline

JoostinOnline

Certified Crash Test Dummy
OP
Member
Joined
Apr 2, 2011
Messages
11,005
Trophies
1
Location
The Twilight Zone
Website
www.hacksden.com
XP
4,323
Country
United States

WeedZ

Possibly an Enlightened Being
Global Moderator
Joined
Jan 13, 2015
Messages
3,816
Trophies
1
Location
The State of Denial
Website
gbatemp.net
XP
5,452
Country
United States
DyAFdi7.png
George?
 

You may also like...

General chit-chat
Help Users
  • No one is chatting at the moment.
  • captainbob321 @ captainbob321:
    Hello!
  • captainbob321 @ captainbob321:
    What's so Funny, @M4x1mumReZ
    ?
    +1
  • M4x1mumReZ @ M4x1mumReZ:
    Welcome new user
  • trepp0 @ trepp0:
    Just got the notice that school is being released 2 hours early cause of the winter storm
  • trepp0 @ trepp0:
    lets go
  • Psionic Roshambo @ Psionic Roshambo:
    Better than 3 hours late from a lockdown lol
    +1
  • FAST6191 @ FAST6191:
    While I know you mean in case of someone confusing schooling establishment from shooting establishment (many of the same letters) I am still going to read that as lockdown (also known as lock in) for a pub
  • FAST6191 @ FAST6191:
    where if you were in the club you could be invited to be there as a guest of the landlords after things are supposed to stop being served
  • FAST6191 @ FAST6191:
    Have technically done that in a school but it was the sports centre associated with the school more than the school itself
  • FAST6191 @ FAST6191:
    being drunk in school was either because drunk on playing field or could not be arsed with one particular Thursday afternoon so went and had some beers and played some games instead before returning for an ill advised last lesson/period
  • K3N1 @ K3N1:
    Being drunk and high in school was cool
  • K3N1 @ K3N1:
    It was high school
  • The Real Jdbye @ The Real Jdbye:
    my power cut out twice
  • The Real Jdbye @ The Real Jdbye:
    my pi running octoprint wiped all my plugins and i cba to fix it
  • Psionic Roshambo @ Psionic Roshambo:
    No pi for you lol
  • Sonic Angel Knight @ Sonic Angel Knight:
    Psi, you didn't spell your name right
  • Sonic Angel Knight @ Sonic Angel Knight:
    It's "Psionic" not "PI"
  • Psionic Roshambo @ Psionic Roshambo:
    So R Kelly is probably pissing himself right now
    +1
  • K3N1 @ K3N1:
    R Kelly knows how to piss on himself?
    +1
    Psionic Roshambo @ Psionic Roshambo: Lol