apple2ix/Apple2Mac/Apple2MacTests/CPUTestAppDelegate.m
Aaron Culliney e527e40a6a Remove XCTest stuff and roll our own
* Eh, not sure what bennies going with XCTest offers, use our existing stuff
    * Also appears that XCTest does some real whacky dloading jazz that doesn't play well with our hand-rolled assembly
2014-06-25 22:55:58 -07:00

52 lines
796 B
Objective-C

//
// AppDelegate.m
// Apple2Mac
//
// Created by Aaron Culliney on 6/21/14.
// Copyright (c) 2014 deadc0de.org. All rights reserved.
//
#import "AppDelegate.h"
#import "common.h"
extern void c_initialize_firsttime(void);
void video_driver_init() {
// TBD ... initialize main game GL view
}
void video_driver_shutdown() {
// TBD ... destroy main game GL view
}
void video_sync(int ignored) {
// TBD ...
}
@implementation AppDelegate
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
[self testCPU];
}
extern int test_cpu(int, char **);
- (void)testCPU
{
char *argv[] = {
"-f",
NULL
};
int argc = 0;
for (char **p = &argv[0]; *p != NULL; p++) {
++argc;
}
int val = test_cpu(argc, argv);
}
@end