Show hard drive activity in non-production mode

This commit is contained in:
Brendan Robert 2024-03-08 09:21:28 -06:00
parent 58e43c468d
commit 46a1500640

View File

@ -181,7 +181,11 @@ public class CardMassStorage extends Card implements MediaConsumerParent {
protected void handleFirmwareAccess(int offset, TYPE type, int value, RAMEvent e) {
// System.out.println(e.getType()+" "+Integer.toHexString(e.getAddress())+" from instruction at "+Integer.toHexString(cpu.getProgramCounter()));
if (type.isRead()) {
// Emulator.getFrame().addIndicator(this, currentDrive.getIcon());
Emulator.withComputer(c->{
if (!c.PRODUCTION_MODE) {
currentDrive.getIcon().ifPresent(icon -> EmulatorUILogic.addIndicator(this, icon));
}
});
if (drive1.getCurrentDisk() == null && drive2.getCurrentDisk() == null) {
e.setNewValue(0);
return;