Homebrew text not showing up

DarkFlare69

Well-Known Member
OP
Member
Joined
Dec 8, 2014
Messages
5,147
Trophies
2
Location
Chicago
XP
4,750
Country
United States
Using this main.c, the text won't show up on the screen:
Code:
#include <string.h>
#include <stdio.h>
#include <3ds.h>

int main()
{
    gfxInitDefault();

    while (aptMainLoop())
    {
        gspWaitForVBlank();
        hidScanInput();

        printf("Hello World!")

        u32 kDown = hidKeysDown();
        if (kDown & KEY_START)
            break;

        gfxFlushBuffers();
        gfxSwapBuffers();
    }

    gfxExit();
    return 0;
}

It's probably something obvious, like missing an include or something, but pls help anyway.
 

smealum

growing up sucks.
Member
Joined
May 1, 2006
Messages
635
Trophies
2
Age
31
Location
SF
Website
www.smealum.net
XP
2,516
Country
United States
Joined
Feb 15, 2015
Messages
1,464
Trophies
0
XP
1,099
Country
United States
Last edited by MassExplosion213,

DarkFlare69

Well-Known Member
OP
Member
Joined
Dec 8, 2014
Messages
5,147
Trophies
2
Location
Chicago
XP
4,750
Country
United States
you didnt get this "straight from ctrulib", you modified the code pretty heavily... @MassExplosion213, you should maybe actually read the code at the other end of the link before saying stuff like that.

either way, ctrulib does include an example for rendering text : https://github.com/smealum/ctrulib/blob/master/examples/graphics/printing/hello-world/source/main.c
It's pretty much the same thing with a few notes. And if "heavily" is removing a few notes, the white pixel example, and replacing //Code with hello world!, then I'm scared for our future in computer programming

But overall it looks like we just need to add the console init.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    The Real Jdbye @ The Real Jdbye: @Xdqwerty :creep: +1