mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-09-13 12:54:49 +00:00
52 lines
796 B
Mathematica
52 lines
796 B
Mathematica
|
//
|
||
|
// 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
|