mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-13 22:59:02 +00:00
Fixed hardware deserialization issues
This commit is contained in:
@@ -458,7 +458,11 @@ public class CPU implements MongoSerialisable {
|
||||
String str = "------------------------\n";
|
||||
str += registerSet.toString();
|
||||
str += status.toString();
|
||||
str += "------------------------\n";
|
||||
str += "HW: ";
|
||||
for (CpuHardware hw : attachedHardware.values()) {
|
||||
str += hw + ", ";
|
||||
}
|
||||
str += "\n------------------------\n";
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
@@ -42,4 +42,8 @@ public abstract class CpuHardware implements MongoSerialisable {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("<%04X>", (int) getId());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user