MCPcopy Create free account
hub / github.com/badvision/jace / newSearch

Method newSearch

src/main/java/jace/cheat/MetaCheat.java:223–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221 }
222
223 public void newSearch() {
224 Emulator.withMemory(memory -> {
225 resultList.clear();
226 int compare = parseInt(searchValueProperty.get());
227 for (int i = 0; i < 0x10000; i++) {
228 boolean signed = signedProperty.get();
229 int val
230 = byteSized
231 ? signed ? memory.readRaw(i) : memory.readRaw(i) & 0x0ff
232 : signed ? memory.readWordRaw(i) : memory.readWordRaw(i) & 0x0ffff;
233 if (!searchType.equals(SearchType.VALUE) || val == compare) {
234 SearchResult result = new SearchResult(i, val);
235 resultList.add(result);
236 }
237 }
238 });
239 }
240
241 public void performSearch() {
242 Emulator.withMemory(memory -> {

Callers

nothing calls this directly

Calls 7

withMemoryMethod · 0.95
parseIntMethod · 0.95
readRawMethod · 0.80
readWordRawMethod · 0.80
addMethod · 0.80
getMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected