Homebrew text not showing up

DarkFlare69

Well-Known Member
Member
Joined
Dec 8, 2014
Messages
5,147
Solutions
3
Reaction score
3,215
Trophies
3
Location
Chicago
XP
4,807
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.
 
Last edited by MassExplosion213,
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