MemorySegment[] segments = cpu.getMemorySegments();
for (int i = 0; i < segments.length; i++)
segments[i].disableUserInput();
ScreenGUI screen = gui.getScreen();
if (screen != null)
screen.startAnimation();
}
// exit NO_DISPLAY_CHANGES
if (newAnimationMode != HackController.NO_DISPLAY_CHANGES &&
animationMode == HackController.NO_DISPLAY_CHANGES) {
cpu.getRAM().enableUserInput();
cpu.getStack().enableUserInput();
cpu.getWorkingStack().enableUserInput();
cpu.getStaticSegment().enableUserInput();
MemorySegment[] segments = cpu.getMemorySegments();
for (int i = 0; i < segments.length; i++)
segments[i].enableUserInput();
ScreenGUI screen = gui.getScreen();
if (screen != null)
screen.stopAnimation();
}
}
animationMode = newAnimationMode;