2015-10-22 05:13:26 +00:00
|
|
|
/*
|
|
|
|
* 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
|
2015-12-05 04:27:36 +00:00
|
|
|
# import "AppDelegate.h"
|
2014-09-27 18:03:51 +00:00
|
|
|
#endif
|
2014-06-22 04:38:05 +00:00
|
|
|
|
2017-09-14 03:27:42 +00:00
|
|
|
#include "common.h"
|
2014-06-22 04:38:05 +00:00
|
|
|
|
2017-09-14 03:27:42 +00:00
|
|
|
int main(int argc_, char *argv_[])
|
2014-06-22 04:38:05 +00:00
|
|
|
{
|
2015-12-05 04:27:36 +00:00
|
|
|
int retVal = 1;
|
2014-06-22 04:38:05 +00:00
|
|
|
argc = argc_;
|
|
|
|
argv = argv_;
|
2014-09-27 18:03:51 +00:00
|
|
|
|
2017-09-14 03:27:42 +00:00
|
|
|
cpu_pause();
|
|
|
|
|
2014-09-27 18:03:51 +00:00
|
|
|
@autoreleasepool {
|
2015-12-05 04:27:36 +00:00
|
|
|
#if TARGET_OS_IPHONE
|
|
|
|
retVal = UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
|
2014-09-27 18:03:51 +00:00
|
|
|
#else
|
2017-09-14 03:27:42 +00:00
|
|
|
retVal = NSApplicationMain(argc, (const char **)argv);
|
2014-09-27 18:03:51 +00:00
|
|
|
#endif
|
2015-12-05 04:27:36 +00:00
|
|
|
}
|
|
|
|
|
2014-09-27 18:03:51 +00:00
|
|
|
return retVal;
|
2014-06-22 04:38:05 +00:00
|
|
|
}
|