apple2ix/Apple2Mac/main.m

42 lines
788 B
Mathematica
Raw Normal View History

/*
* Apple // emulator for *ix
*
* This software package is subject to the GNU General Public License
* version 3 or later (your choice) as published by the Free Software
* Foundation.
*
* Copyright 2014, 2015 Aaron Culliney
*
*/
2014-06-22 04:38:05 +00:00
2014-10-08 04:59:21 +00:00
#if TARGET_OS_IPHONE
# import "AppDelegate.h"
2018-01-20 16:14:08 +00:00
#elif TARGET_OS_MAC
# import <AppKit/NSApplication.h>
#else
# error what new devilry is this?
#endif
2014-06-22 04:38:05 +00:00
#include "common.h"
2014-06-22 04:38:05 +00:00
int main(int argc_, char *argv_[])
2014-06-22 04:38:05 +00:00
{
int retVal = 1;
2014-06-22 04:38:05 +00:00
argc = argc_;
argv = argv_;
2018-01-22 15:33:33 +00:00
#if !TESTING
cpu_pause();
#endif
@autoreleasepool {
#if TARGET_OS_IPHONE
retVal = UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
#else
retVal = NSApplicationMain(argc, (const char **)argv);
#endif
}
return retVal;
2014-06-22 04:38:05 +00:00
}