2017-07-30 22:05:29 -04:00
|
|
|
//
|
|
|
|
// CSAmstradCPC.m
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 30/07/2017.
|
|
|
|
// Copyright © 2017 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "CSAmstradCPC.h"
|
|
|
|
|
|
|
|
#include "AmstradCPC.hpp"
|
|
|
|
|
|
|
|
@implementation CSAmstradCPC {
|
2017-07-31 22:32:04 -04:00
|
|
|
std::unique_ptr<AmstradCPC::Machine> _amstradCPC;
|
2017-07-30 22:05:29 -04:00
|
|
|
}
|
|
|
|
|
2017-07-31 18:44:49 -04:00
|
|
|
- (instancetype)init {
|
2017-08-27 16:36:21 -04:00
|
|
|
AmstradCPC::Machine *machine = AmstradCPC::Machine::AmstradCPC();
|
|
|
|
|
|
|
|
self = [super initWithMachine:machine];
|
2017-07-31 18:44:49 -04:00
|
|
|
if(self) {
|
2017-08-27 16:36:21 -04:00
|
|
|
_amstradCPC.reset(machine);
|
2017-07-31 18:44:49 -04:00
|
|
|
}
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
2017-07-30 22:05:29 -04:00
|
|
|
- (NSString *)userDefaultsPrefix { return @"amstradCPC"; }
|
|
|
|
|
|
|
|
@end
|