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

Function consoleDisplayError

3ds/source/util.cpp:43–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

servicesInitFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected