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