Overview
Comment: | OFApplication: Clean up terminateWithStatus: |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
6d6069af9206f2d9670b234fe1e073db |
User & Date: | js on 2016-03-20 18:34:25 |
Other Links: | manifest | tags |
Context
2016-03-20
| ||
19:06 | forwarding: Use .section .init_array on 3DS check-in: 7eca061e3a user: js tags: trunk | |
18:34 | OFApplication: Clean up terminateWithStatus: check-in: 6d6069af92 user: js tags: trunk | |
18:28 | Nintendo 3DS: Call gfxExit() at exit check-in: bd02f7426c user: js tags: trunk | |
Changes
Modified src/OFApplication.m from [8b89a99f6e] to [e942c20c56].
︙ | ︙ | |||
154 155 156 157 158 159 160 | + (OFDictionary*)environment { return [app environment]; } + (void)terminate { | > | > | | < > | > | 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]; OF_UNREACHABLE } + (void)terminateWithStatus: (int)status { #ifndef OF_PSP exit(status); #else sceKernelExitGame(); OF_UNREACHABLE #endif } - init { self = [super init]; |
︙ | ︙ | |||
472 473 474 475 476 477 478 | objc_autoreleasePoolPop(pool); [runLoop run]; } - (void)terminate { | > | > > | > | 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]; OF_UNREACHABLE } - (void)terminateWithStatus: (int)status { [[self class] terminateWithStatus: status]; OF_UNREACHABLE } @end |