()
| 289 | } |
| 290 | |
| 291 | public void initMemoryView() { |
| 292 | Emulator.withMemory(memory -> { |
| 293 | for (int addr = getStartAddress(); addr <= getEndAddress(); addr++) { |
| 294 | if (getMemoryCell(addr) == null) { |
| 295 | MemoryCell cell = new MemoryCell(); |
| 296 | cell.address = addr; |
| 297 | cell.value.set(memory.readRaw(addr)); |
| 298 | memoryCells.put(addr, cell); |
| 299 | } |
| 300 | } |
| 301 | if (memoryViewListener == null) { |
| 302 | memoryViewListener = memory.observe("Metacheat memory viewer", RAMEvent.TYPE.ANY, startAddress, endAddress, this::processMemoryEvent); |
| 303 | listeners.add(memoryViewListener); |
| 304 | } |
| 305 | }); |
| 306 | } |
| 307 | |
| 308 | int fadeCounter = 0; |
| 309 | int FADE_TIMER_VALUE = Emulator.withComputer(c-> (int) (c.getMotherboard().getSpeedInHz() / 60), 100); |
no test coverage detected