| 41 | #define SOC_BUFFERSIZE 0x100000 |
| 42 | |
| 43 | Result 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 | |
| 59 | Result servicesInit(void) |
| 60 | { |
no outgoing calls
no test coverage detected