From a4640e21a06aa9850428683067c8036f86869578 Mon Sep 17 00:00:00 2001 From: Lemon Toucher Date: Sun, 4 Aug 2019 22:12:22 +1000 Subject: [PATCH] Removed bloat from the user-interface. --- source/Common.cpp | 9 +-------- source/Common.hpp | 9 +-------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/source/Common.cpp b/source/Common.cpp index 8fec2ff..22b01e5 100644 --- a/source/Common.cpp +++ b/source/Common.cpp @@ -130,13 +130,6 @@ namespace Common { draw_text(0x1e0, 0x040, CYAN, "Lockpick_RCM"); draw_text(0x2a0, 0x040, YELLOW, "can get newer keys on firmware 7.0.0+!"); - draw_set_rect(814, 452 + 42 * 0, 450, 42, FLAG_RED); - draw_set_rect(814, 452 + 42 * 1, 450, 42, FLAG_ORANGE); - draw_set_rect(814, 452 + 42 * 2, 450, 42, FLAG_YELLOW); - draw_set_rect(814, 452 + 42 * 3, 450, 42, FLAG_GREEN); - draw_set_rect(814, 452 + 42 * 4, 450, 42, FLAG_BLUE); - draw_set_rect(814, 452 + 42 * 5, 450, 42, FLAG_VIOLET); - if ( !(envIsSyscallHinted(0x60) && // svcDebugActiveProcess envIsSyscallHinted(0x63) && // svcGetDebugEvent envIsSyscallHinted(0x65) && // svcGetProcessList @@ -234,4 +227,4 @@ namespace Common { *reinterpret_cast(temp_key.data() + i) = __bswap64(strtoul(key_string.substr(i * 2, 0x10).c_str(), NULL, 16)); return temp_key; } -} \ No newline at end of file +} diff --git a/source/Common.hpp b/source/Common.hpp index a06eb52..203aa00 100644 --- a/source/Common.hpp +++ b/source/Common.hpp @@ -32,13 +32,6 @@ #define CYAN RGBA8_MAXALPHA(0, 0xff, 0xff) #define YELLOW RGBA8_MAXALPHA(0xff, 0xff, 0) -#define FLAG_RED RGBA8_MAXALPHA(0xe7, 0x00, 0x00) -#define FLAG_ORANGE RGBA8_MAXALPHA(0xff, 0x8c, 0x00) -#define FLAG_YELLOW RGBA8_MAXALPHA(0xff, 0xef, 0x00) -#define FLAG_GREEN RGBA8_MAXALPHA(0x00, 0x81, 0x1f) -#define FLAG_BLUE RGBA8_MAXALPHA(0x00, 0x44, 0xff) -#define FLAG_VIOLET RGBA8_MAXALPHA(0x76, 0x00, 0x89) - class Key; typedef std::vector byte_vector; @@ -69,4 +62,4 @@ namespace Common { // reads " = " and returns byte vector byte_vector key_string_to_byte_vector(std::string key_string); -} \ No newline at end of file +}