1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-08-08 14:25:05 +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 { 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)setKernelROM:(nonnull NSData *)rom;
- (void)setBASICROM:(nonnull NSData *)rom; - (void)setBASICROM:(nonnull NSData *)rom;
- (void)setCharactersROM:(nonnull NSData *)rom; - (void)setCharactersROM:(nonnull NSData *)rom;
- (void)setROM:(nonnull NSData *)rom address:(uint16_t)address; - (void)setPRG:(nonnull NSData *)rom;
@end @end

View File

@@ -27,7 +27,7 @@
- (void)setCharactersROM:(nonnull NSData *)rom { - (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 { - (void)setKey:(uint16_t)key isPressed:(BOOL)isPressed {