mirror of
https://github.com/Maschell/fuse-wiiu.git
synced 2024-11-22 06:39:14 +01:00
Adopt to latest JNUSLib version
This commit is contained in:
parent
5c8ea1f9d5
commit
962ebf68a9
@ -44,7 +44,6 @@ public class NUSTitleEncryptedFuseContainer implements FuseContainer {
|
|||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
}
|
}
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
@ -55,7 +54,7 @@ public class NUSTitleEncryptedFuseContainer implements FuseContainer {
|
|||||||
return getContentForPath(path.substring(0, 8) + ".app").flatMap(c -> {
|
return getContentForPath(path.substring(0, 8) + ".app").flatMap(c -> {
|
||||||
if (c.isHashed()) {
|
if (c.isHashed()) {
|
||||||
try {
|
try {
|
||||||
Optional<byte[]> hash = title.getDataProvider().getContentH3Hash(c);
|
Optional<byte[]> hash = title.getDataProcessor().getDataProvider().getContentH3Hash(c);
|
||||||
return hash;
|
return hash;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
}
|
}
|
||||||
@ -67,7 +66,7 @@ public class NUSTitleEncryptedFuseContainer implements FuseContainer {
|
|||||||
private Optional<byte[]> getTMDforPath(String path) {
|
private Optional<byte[]> getTMDforPath(String path) {
|
||||||
return getFileforPath(path, "title.tmd", () -> {
|
return getFileforPath(path, "title.tmd", () -> {
|
||||||
try {
|
try {
|
||||||
return title.getDataProvider().getRawTMD();
|
return title.getDataProcessor().getDataProvider().getRawTMD();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
@ -77,7 +76,7 @@ public class NUSTitleEncryptedFuseContainer implements FuseContainer {
|
|||||||
private Optional<byte[]> getTicketforPath(String path) {
|
private Optional<byte[]> getTicketforPath(String path) {
|
||||||
return getFileforPath(path, "title.tik", () -> {
|
return getFileforPath(path, "title.tik", () -> {
|
||||||
try {
|
try {
|
||||||
return title.getDataProvider().getRawTicket();
|
return title.getDataProcessor().getDataProvider().getRawTicket();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
@ -87,7 +86,7 @@ public class NUSTitleEncryptedFuseContainer implements FuseContainer {
|
|||||||
private Optional<byte[]> getCertforPath(String path) {
|
private Optional<byte[]> getCertforPath(String path) {
|
||||||
return getFileforPath(path, "title.cert", () -> {
|
return getFileforPath(path, "title.cert", () -> {
|
||||||
try {
|
try {
|
||||||
return title.getDataProvider().getRawCert();
|
return title.getDataProcessor().getDataProvider().getRawCert();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
@ -217,7 +216,7 @@ public class NUSTitleEncryptedFuseContainer implements FuseContainer {
|
|||||||
|
|
||||||
byte[] data;
|
byte[] data;
|
||||||
try {
|
try {
|
||||||
data = title.getDataProvider().readContent(c, offset, (int) size);
|
data = title.getDataProcessor().readContent(c, offset, (int) size);
|
||||||
buf.put(0, data, 0, data.length);
|
buf.put(0, data, 0, data.length);
|
||||||
return data.length;
|
return data.length;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user