From 836428c56fd8931871f32e84b44a38b9d645686c Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 5 Dec 2020 21:26:53 +0100 Subject: [PATCH] Improve the payload selection screen --- src/main.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 84a725c..e79e433 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -50,7 +50,7 @@ extern "C" uint32_t start_wrapper(int argc, char **argv) { WHBLogUdpInit(); - DEBUG_FUNCTION_LINE("Hello from payload"); + DEBUG_FUNCTION_LINE("Hello from payload.elf multiloader"); VPADReadError err; VPADStatus vpad_data; @@ -192,12 +192,20 @@ std::string PayloadSelectionScreen(const std::map &pay VPADStatus vpad_data; VPADReadError error; int selected = 0; + std::string header = "Please choose your payload:"; while (true) { // Clear screens OSScreenClearBufferEx(SCREEN_TV, 0); OSScreenClearBufferEx(SCREEN_DRC, 0); int pos = 0; + + + OSScreenPutFontEx(SCREEN_TV, 0, pos, header.c_str()); + OSScreenPutFontEx(SCREEN_DRC, 0, pos, header.c_str()); + + pos += 2; + int i = 0; for (auto const&[key, val] : payloads) { std::string text = StringTools::strfmt("%s %s", i == selected ? "> " : " ", key.c_str());