mirror of
https://github.com/developersu/ns-usbloader.git
synced 2025-05-13 14:44:48 -04:00
v0.5.2 Readme updates. Minor refactoring and one typo fix. Publishing v0.5.2 =)
This commit is contained in:
parent
750fa9bd4b
commit
a429aef30b
2 changed files with 11 additions and 9 deletions
|
@ -486,18 +486,18 @@ public class UsbCommunications extends Task<Void> {
|
|||
byte[] readByte;
|
||||
|
||||
// Go connect to GoldLeaf
|
||||
if (writeToUsb(CMD_GLUC))
|
||||
logPrinter.print("GL Initiating GoldLeaf connection: 1/2", EMsgType.PASS);
|
||||
else {
|
||||
|
||||
if (!writeToUsb(CMD_GLUC)) {
|
||||
logPrinter.print("GL Initiating GoldLeaf connection: 1/2", EMsgType.FAIL);
|
||||
return false;
|
||||
}
|
||||
if (writeToUsb(CMD_ConnectionRequest))
|
||||
logPrinter.print("GL Initiating GoldLeaf connection: 2/2", EMsgType.PASS);
|
||||
else {
|
||||
logPrinter.print("GL Initiating GoldLeaf connection: 1/2", EMsgType.PASS);
|
||||
if (!writeToUsb(CMD_ConnectionRequest)){
|
||||
logPrinter.print("GL Initiating GoldLeaf connection: 2/2", EMsgType.FAIL);
|
||||
return false;
|
||||
}
|
||||
logPrinter.print("GL Initiating GoldLeaf connection: 2/2", EMsgType.PASS);
|
||||
|
||||
while (true) {
|
||||
readByte = readFromUsb();
|
||||
if (readByte == null)
|
||||
|
@ -606,7 +606,7 @@ public class UsbCommunications extends Task<Void> {
|
|||
}
|
||||
logPrinter.print(" [2/4] File #"+i, EMsgType.PASS);
|
||||
if (!writeToUsb(ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN).putLong(pfsElement.getBodySize()+pfsElement.getNca(i).getNcaOffset()).array())) { // offset. real.
|
||||
logPrinter.print(" [2/4] File #"+i, EMsgType.FAIL);
|
||||
logPrinter.print(" [3/4] File #"+i, EMsgType.FAIL);
|
||||
return false;
|
||||
}
|
||||
logPrinter.print(" [3/4] File #"+i, EMsgType.PASS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue