aboutsummaryrefslogtreecommitdiff
path: root/source/Common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Common.cpp')
-rw-r--r--source/Common.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/source/Common.cpp b/source/Common.cpp
index e8fa6ba..8fec2ff 100644
--- a/source/Common.cpp
+++ b/source/Common.cpp
@@ -125,8 +125,10 @@ namespace Common {
125 framebufferEnd(&fb); 125 framebufferEnd(&fb);
126 126
127 draw_text(0x010, 0x020, YELLOW, "Lockpick! by shchmue"); 127 draw_text(0x010, 0x020, YELLOW, "Lockpick! by shchmue");
128 draw_text(0x190, 0x020, YELLOW, "Note: This can only dump keys 00-05 (or 00-06 on 6.2.0)"); 128 draw_text(0x190, 0x020, YELLOW, "Note:");
129 draw_text(0x190, 0x040, YELLOW, "Use Lockpick_RCM for newer keys on firmware 7.0.0+!"); 129 draw_text(0x1e0, 0x020, YELLOW, "Lockpick can only dump keys 00-05 (or 00-06 on 6.2.0)");
130 draw_text(0x1e0, 0x040, CYAN, "Lockpick_RCM");
131 draw_text(0x2a0, 0x040, YELLOW, "can get newer keys on firmware 7.0.0+!");
130 132
131 draw_set_rect(814, 452 + 42 * 0, 450, 42, FLAG_RED); 133 draw_set_rect(814, 452 + 42 * 0, 450, 42, FLAG_RED);
132 draw_set_rect(814, 452 + 42 * 1, 450, 42, FLAG_ORANGE); 134 draw_set_rect(814, 452 + 42 * 1, 450, 42, FLAG_ORANGE);
@@ -159,8 +161,9 @@ namespace Common {
159 if (std::filesystem::exists("/backup")) { 161 if (std::filesystem::exists("/backup")) {
160 for (auto &p : std::filesystem::recursive_directory_iterator("/backup")) { 162 for (auto &p : std::filesystem::recursive_directory_iterator("/backup")) {
161 if (p.is_regular_file()) { 163 if (p.is_regular_file()) {
162 if (!sbk.found() && (p.file_size() == 0x2fc) && 164 if (!sbk.found() && (p.file_size() == 0x2fc || p.file_size() == 0x300) &&
163 (std::string("fuse").compare(std::string(p.path().filename()).substr(0, 4)) == 0)) 165 ((p.path().filename().string().substr(0, 5).compare("fuses") == 0) ||
166 (p.path().filename().string().substr(0, 11).compare("fuse_cached") == 0)))
164 { 167 {
165 FILE *fuse_file = fopen(p.path().c_str(), "rb"); 168 FILE *fuse_file = fopen(p.path().c_str(), "rb");
166 if (!fuse_file) continue; 169 if (!fuse_file) continue;
@@ -171,7 +174,7 @@ namespace Common {
171 fclose(fuse_file); 174 fclose(fuse_file);
172 } 175 }
173 else if (!tsec.found() && (p.file_size() == 0x20 || p.file_size() == 0x30) && 176 else if (!tsec.found() && (p.file_size() == 0x20 || p.file_size() == 0x30) &&
174 (std::string("tsec").compare(std::string(p.path().filename()).substr(0, 4)) == 0)) 177 (p.path().filename().string().substr(0, 4).compare("tsec") == 0))
175 { 178 {
176 FILE *tsec_file = fopen(p.path().c_str(), "rb"); 179 FILE *tsec_file = fopen(p.path().c_str(), "rb");
177 if (!tsec_file) continue; 180 if (!tsec_file) continue;