21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
+
|
#import "OFApplication.h"
#import "OFColor.h"
#import "OFDictionary.h"
#import "OFMethodSignature.h"
#import "OFSet.h"
#import "OFStdIOStream.h"
#import "OFThread.h"
#import "OFValue.h"
#import "OTTestCase.h"
#import "OFGameController.h"
#import "OTAssertionFailedException.h"
|
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
|
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
|
-
+
|
[controller retrieveState];
if ([controller.pressedButtons containsObject:
OFGameControllerEastButton])
break;
[OFStdIOStream waitForConsoleVBlank];
[OFThread waitForVerticalBlank];
objc_autoreleasePoolPop(pool);
}
#elif defined(OF_NINTENDO_SWITCH)
[OFStdOut setForegroundColor: [OFColor silver]];
[OFStdOut writeLine: @"Press A to continue"];
|
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
|
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
|
-
+
|
OFGameControllerHomeButton])
# else
if ([controller.pressedButtons containsObject:
OFGameControllerStartButton])
# endif
break;
[OFStdIOStream waitForConsoleVBlank];
[OFThread waitForVerticalBlank];
objc_autoreleasePoolPop(pool);
}
#elif defined(OF_NINTENDO_SWITCH)
while (appletMainLoop())
updateConsole(true);
consoleExit(NULL);
#endif
[OFApplication terminateWithStatus: (int)numFailed];
}
@end
|