MCPcopy Create free account
hub / github.com/Maschell/JNUSTool / call

Method call

src/de/mas/jnustool/util/UpdateListManager.java:123–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121
122 tasks.add(new Callable<NUSTitleInformation>() {
123 @Override
124 public NUSTitleInformation call() throws Exception {
125 NUSTitleInformation newinformation = null;
126 NUSTitle foo = new NUSTitle(test.getTitleID()| 0x0000000E00000000L, -1, null);
127 FEntry testa = foo.getFst().metaFENtry;
128 byte[] metaxml = null;
129
130 if(testa != null){
131 try {
132 metaxml = testa.downloadAsByteArray();
133 InputStream stream = new ByteArrayInputStream(metaxml);
134 newinformation = foo.readMeta(stream);
135 newinformation.setTitleID(newinformation.getTitleID() | 0x0000000E00000000L); //Force update
136 newinformation.addVersion(test.getVersion());
137 System.out.println(String.format("( %03d of %03d) ", count.incrementAndGet(),size) +"Downloaded information for " + test.getTitleIDAsString());
138 stream.close();
139 } catch (IOException e) {
140 System.out.println("Downloading information for " + test.getTitleIDAsString() + " failed");
141 }
142 }
143 return newinformation;
144 }
145 });
146 }
147 for(Future<NUSTitleInformation> future :pool.invokeAll(tasks)){

Callers

nothing calls this directly

Calls 8

getTitleIDMethod · 0.95
getFstMethod · 0.95
downloadAsByteArrayMethod · 0.95
readMetaMethod · 0.95
setTitleIDMethod · 0.95
addVersionMethod · 0.95
getTitleIDAsStringMethod · 0.80
getVersionMethod · 0.45

Tested by

no test coverage detected