1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-23 20:29:42 +00:00

Added forwarding of a loaded PRG from the Swift document to the wrapper. So I think that possibly completes the Swift side of things?

This commit is contained in:
Thomas Harte 2016-06-05 09:01:32 -04:00
parent 8052ce9223
commit b29b2a5d08
3 changed files with 3 additions and 3 deletions

View File

@ -42,6 +42,6 @@ class Vic20Document: MachineDocument {
}
override func readFromData(data: NSData, ofType typeName: String) throws {
print("\(data.length)")
vic20.setPRG(data)
}
}

View File

@ -14,6 +14,6 @@
- (void)setKernelROM:(nonnull NSData *)rom;
- (void)setBASICROM:(nonnull NSData *)rom;
- (void)setCharactersROM:(nonnull NSData *)rom;
- (void)setROM:(nonnull NSData *)rom address:(uint16_t)address;
- (void)setPRG:(nonnull NSData *)rom;
@end

View File

@ -27,7 +27,7 @@
- (void)setCharactersROM:(nonnull NSData *)rom {
}
- (void)setROM:(nonnull NSData *)rom address:(uint16_t)address {
- (void)setPRG:(nonnull NSData *)rom address:(uint16_t)address {
}
- (void)setKey:(uint16_t)key isPressed:(BOOL)isPressed {