29 lines
378 B
Plaintext
29 lines
378 B
Plaintext
//
|
|
// NesSystem.m
|
|
//
|
|
//
|
|
// Created by Selim Mustafaev on 27.09.2023.
|
|
//
|
|
|
|
#import "NesSystem.h"
|
|
#import <NesKitCpp.h>
|
|
#import <memory>
|
|
|
|
|
|
@interface NesSystem()
|
|
|
|
@end
|
|
|
|
@implementation NesSystem {
|
|
std::unique_ptr<nes::System> _system;
|
|
}
|
|
|
|
- (instancetype)init {
|
|
if(self = [super init]) {
|
|
_system = std::make_unique<nes::System>();
|
|
}
|
|
return self;
|
|
}
|
|
|
|
@end
|