2011-06-24 15:57:30 +00:00
|
|
|
#import <UIKit/UIKit.h>
|
2011-08-30 19:14:13 +00:00
|
|
|
#include "SkApplication.h"
|
2012-10-02 18:33:14 +00:00
|
|
|
|
|
|
|
extern void save_args(int argc, char *argv[]);
|
|
|
|
|
2011-06-24 15:57:30 +00:00
|
|
|
int main(int argc, char *argv[]) {
|
2011-07-07 19:26:42 +00:00
|
|
|
signal(SIGPIPE, SIG_IGN);
|
2011-06-24 15:57:30 +00:00
|
|
|
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
|
2011-08-30 19:14:13 +00:00
|
|
|
application_init();
|
2012-10-02 18:33:14 +00:00
|
|
|
save_args(argc, argv);
|
2011-06-24 15:57:30 +00:00
|
|
|
int retVal = UIApplicationMain(argc, argv, nil, nil);
|
2011-08-30 19:14:13 +00:00
|
|
|
application_term();
|
2011-06-24 15:57:30 +00:00
|
|
|
[pool release];
|
|
|
|
return retVal;
|
|
|
|
}
|