MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / consoleDisplayError

Function consoleDisplayError

3ds/source/util.cpp:50–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50Result consoleDisplayError(const std::string& message, Result res)
51{
52 consoleInit(GFX_TOP, nullptr);
53 printf("\x1b[2;13HCheckpoint v%d.%d.%d-%s", VERSION_MAJOR, VERSION_MINOR, VERSION_MICRO, GIT_REV);
54 printf("\x1b[5;1HError during startup: \x1b[31m0x%08lX\x1b[0m", res);
55 printf("\x1b[8;1HDescription: \x1b[33m%s\x1b[0m", message.c_str());
56 printf("\x1b[29;16HPress START to exit.");
57 gfxFlushBuffers();
58 gfxSwapBuffers();
59 gspWaitForVBlank();
60 while (aptMainLoop() && !(hidKeysDown() & KEY_START)) {
61 hidScanInput();
62 }
63 return res;
64}
65
66Result servicesInit(void)
67{

Callers 2

servicesInitFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected