From f295cf014dfed39e48fbc41ee6e83aad5304b212 Mon Sep 17 00:00:00 2001 From: Dmitry Isaenko Date: Tue, 19 Feb 2019 17:50:13 +0300 Subject: [PATCH] Another one readme update --- README.md | 2 ++ src/main/java/nsusbloader/PFS/PFSProvider.java | 4 ++-- src/main/java/nsusbloader/UsbCommunications.java | 3 +-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 43e8220..d6d00e3 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ Ok, I'm almost sure that this version has bugs. I don't remember where I downloa Let's rephrase, if you have working version of TinFoil DO NOT use this one. +![Screenshot](https://farm8.staticflickr.com/7834/47133893471_37fd9689c4_o.png) + ## License Source code spreads under the GNU General Public License v.3. You can find it in LICENSE file. diff --git a/src/main/java/nsusbloader/PFS/PFSProvider.java b/src/main/java/nsusbloader/PFS/PFSProvider.java index 2c22593..6888b80 100644 --- a/src/main/java/nsusbloader/PFS/PFSProvider.java +++ b/src/main/java/nsusbloader/PFS/PFSProvider.java @@ -116,9 +116,9 @@ public class PFSProvider { nca_name_offset = ByteBuffer.wrap(Arrays.copyOfRange(ncaInfoArr, 20, 24)).order(ByteOrder.LITTLE_ENDIAN).getInt(); // yes, cast from int to long. printLog(" Padding check", offset == 0?EMsgType.PASS:EMsgType.WARNING); - printLog(" NCA offset check "+nca_offset, nca_offset >= 0?EMsgType.PASS:EMsgType.WARNING); + printLog(" NCA offset check: "+nca_offset, nca_offset >= 0?EMsgType.PASS:EMsgType.WARNING); printLog(" NCA size check: "+nca_size, nca_size >= 0?EMsgType.PASS: EMsgType.WARNING); - printLog(" NCA name offset check "+nca_name_offset, nca_name_offset >= 0?EMsgType.PASS:EMsgType.WARNING); + printLog(" NCA name offset check: "+nca_name_offset, nca_name_offset >= 0?EMsgType.PASS:EMsgType.WARNING); NCAFile ncaFile = new NCAFile(); ncaFile.setNcaOffset(nca_offset); diff --git a/src/main/java/nsusbloader/UsbCommunications.java b/src/main/java/nsusbloader/UsbCommunications.java index 2f0b827..b8f74f9 100644 --- a/src/main/java/nsusbloader/UsbCommunications.java +++ b/src/main/java/nsusbloader/UsbCommunications.java @@ -545,8 +545,7 @@ public class UsbCommunications extends Task { printLog("GL File structure validated and it will be uploaded", EMsgType.PASS); if (initGoldLeafProtocol(pfsElement)) - status = EFileStatus.UPLOADED; - // else - no change status that is already set to FAILED + status = EFileStatus.UPLOADED; // else - no change status that is already set to FAILED } private boolean initGoldLeafProtocol(PFSProvider pfsElement){ // Go parse commands