From b29b2a5d087dee5e2ec7ed3440ab604aaf654984 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 5 Jun 2016 09:01:32 -0400 Subject: [PATCH] Added forwarding of a loaded PRG from the Swift document to the wrapper. So I think that possibly completes the Swift side of things? --- OSBindings/Mac/Clock Signal/Documents/Vic20Document.swift | 2 +- OSBindings/Mac/Clock Signal/Wrappers/CSVic20.h | 2 +- OSBindings/Mac/Clock Signal/Wrappers/CSVic20.mm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OSBindings/Mac/Clock Signal/Documents/Vic20Document.swift b/OSBindings/Mac/Clock Signal/Documents/Vic20Document.swift index 33c73a80a..3f8018db3 100644 --- a/OSBindings/Mac/Clock Signal/Documents/Vic20Document.swift +++ b/OSBindings/Mac/Clock Signal/Documents/Vic20Document.swift @@ -42,6 +42,6 @@ class Vic20Document: MachineDocument { } override func readFromData(data: NSData, ofType typeName: String) throws { - print("\(data.length)") + vic20.setPRG(data) } } diff --git a/OSBindings/Mac/Clock Signal/Wrappers/CSVic20.h b/OSBindings/Mac/Clock Signal/Wrappers/CSVic20.h index 25d68ea8c..6e5446a40 100644 --- a/OSBindings/Mac/Clock Signal/Wrappers/CSVic20.h +++ b/OSBindings/Mac/Clock Signal/Wrappers/CSVic20.h @@ -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 diff --git a/OSBindings/Mac/Clock Signal/Wrappers/CSVic20.mm b/OSBindings/Mac/Clock Signal/Wrappers/CSVic20.mm index ac49e7fb6..570ccb0a2 100644 --- a/OSBindings/Mac/Clock Signal/Wrappers/CSVic20.mm +++ b/OSBindings/Mac/Clock Signal/Wrappers/CSVic20.mm @@ -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 {