SameBoy/iOS/GBViewController.h

28 lines
797 B
Objective-C

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <UserNotifications/UserNotifications.h>
typedef enum {
GBRunModeNormal,
GBRunModeTurbo,
GBRunModeRewind,
GBRunModePaused,
} GBRunMode;
@interface GBViewController : UIViewController <UIApplicationDelegate,
AVCaptureVideoDataOutputSampleBufferDelegate,
UNUserNotificationCenterDelegate>
@property (nonatomic, strong) UIWindow *window;
- (void)reset;
- (void)openLibrary;
- (void)start;
- (void)stop;
- (void)changeModel;
- (void)openStates;
- (void)openSettings;
- (void)showAbout;
- (void)saveStateToFile:(NSString *)file;
- (void)loadStateFromFile:(NSString *)file;
@property (nonatomic) GBRunMode runMode;
@end