diff --git a/README.md b/README.md index de7b213..13e2a20 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,13 @@ # NS-USBloader NS-USBloader is a PC-side tinfoil NSP USB uploader. Replacement for default usb_install_pc.py + With GUI and cookies. + Read more: https://developersu.blogspot.com/2019/02/ns-usbloader-en.html +Here is the version of 'not perfect byt anyway' [tinfoil I use](https://cloud.mail.ru/public/DwbX/H8d2p3aYR). + ## License Source code spreads under the GNU General Public License v.3. You can find it in LICENSE file. @@ -13,9 +17,9 @@ Source code spreads under the GNU General Public License v.3. You can find it in JRE 8 or higher. See below. ## Used libraries -* OpenJFX https://wiki.openjdk.java.net/display/OpenJFX/Main -* usb4java: https://mvnrepository.com/artifact/org.usb4java/usb4java -* Few icons taken from: http://materialdesignicons.com/ +* [OpenJFX](https://wiki.openjdk.java.net/display/OpenJFX/Main) +* [usb4java](https://mvnrepository.com/artifact/org.usb4java/usb4java) +* Few icons taken from: [materialdesignicons](http://materialdesignicons.com/) ## Usage ### Linux: @@ -24,6 +28,12 @@ Install JRE/JDK 8 or higher (openJDK is good. Oracle's one is also good). JavaFX `root # java -jar /path/to/NS-USBloader.jar` +### macOS + +See 'Linux' section. + +Set 'Security & Privacy' if needed. + ### Windows: * Download Zadig: https://zadig.akeo.ie/ @@ -35,12 +45,6 @@ Install JRE/JDK 8 or higher (openJDK is good. Oracle's one is also good). JavaFX * Get this application (JAR file) double-click on on it (alternatively open 'cmd', go to place where jar located and execute via 'java -jar thisAppName.jar') * Remember to have fun! -### macOS - -Not tested. - -See 'Linux' section - ## Tips&tricks ### Add user to udev rules to use NS non-root (Linux): `root # vim /etc/udev/rules.d/99-NS.rules` @@ -53,6 +57,6 @@ See 'Linux' section * Unable to interrupt transmission when libusb awaiting for read event (when user sent NSP list but didn't selected anything on NS). ## TODO: -- [ ] macOS QA +- [x] macOS QA by [Konstanin Kelemen](https://github.com/konstantin-kelemen). Appreciate assistance of [Vitaliy Natarov](https://github.com/SebastianUA). - [x] Windows support - [ ] code refactoring \ No newline at end of file diff --git a/src/main/java/nsusbloader/UsbCommunications.java b/src/main/java/nsusbloader/UsbCommunications.java index 657e10a..1992287 100644 --- a/src/main/java/nsusbloader/UsbCommunications.java +++ b/src/main/java/nsusbloader/UsbCommunications.java @@ -590,7 +590,7 @@ class UsbCommunications extends Task { int trans = readBufTransferred.get(); byte[] receivedBytes = new byte[trans]; readBuffer.get(receivedBytes); - /* DEBUG START---------------------------------------------------------------------------------------------- + /* DEBUG START----------------------------------------------------------------------------------------------* hexDumpUTF8(receivedBytes); // DEBUG END----------------------------------------------------------------------------------------------*/ return receivedBytes;