154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
|
+
-
+
+
-
-
+
+
-
+
-
+
+
|
+ (OFDictionary*)environment
{
return [app environment];
}
+ (void)terminate
{
[self terminateWithStatus: EXIT_SUCCESS];
exit(0);
OF_UNREACHABLE
}
+ (void)terminateWithStatus: (int)status
{
#ifdef OF_PSP
sceKernelExitGame();
#ifndef OF_PSP
exit(status);
abort(); /* sceKernelExitGame() is not marked noreturn */
#else
sceKernelExitGame();
exit(status);
OF_UNREACHABLE
#endif
}
- init
{
self = [super init];
|
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
|
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
|
+
-
+
+
+
-
+
+
|
objc_autoreleasePoolPop(pool);
[runLoop run];
}
- (void)terminate
{
[[self class] terminate];
exit(EXIT_SUCCESS);
OF_UNREACHABLE
}
- (void)terminateWithStatus: (int)status
{
[[self class] terminateWithStatus: status];
exit(status);
OF_UNREACHABLE
}
@end
|