ObjFW  Check-in [02797b8805]

Overview
Comment:Fix Nintendo DS / 3DS / Switch / Wii
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 02797b880530059d6fcdee31e025aeb07a6929c72dfdbfb8c0036eed3d8fdbf3
User & Date: js on 2024-06-17 00:59:58
Other Links: manifest | tags
Context
2024-06-17
01:02
Fix Windows build check-in: 4c43cc9137 user: js tags: trunk
00:59
Fix Nintendo DS / 3DS / Switch / Wii check-in: 02797b8805 user: js tags: trunk
00:54
Fix compilation on non-Linux check-in: d00e214244 user: js tags: trunk
Changes

Modified src/test/OTAppDelegate.m from [cffdd964c4] to [545f03258c].

288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# else
		for (;;) {
# endif
			void *pool = objc_autoreleasePoolPush();
			OHGameController *controller =
			    [[OHGameController controllers] objectAtIndex: 0];
			OHGameControllerButton *button =
			    [controller.rawProfile.buttons objectForKey: @"A"];

			[controller retrieveState];

			if (button.pressed)
				break;

# ifdef OF_NINTENDO_SWITCH







|







288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# else
		for (;;) {
# endif
			void *pool = objc_autoreleasePoolPush();
			OHGameController *controller =
			    [[OHGameController controllers] objectAtIndex: 0];
			OHGameControllerButton *button =
			    [controller.profile.buttons objectForKey: @"A"];

			[controller retrieveState];

			if (button.pressed)
				break;

# ifdef OF_NINTENDO_SWITCH
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559

	for (;;) {
		void *pool = objc_autoreleasePoolPush();
		OHGameController *controller =
		    [[OHGameController controllers] objectAtIndex: 0];
		OHGameControllerButton *button =
# ifdef OF_WII
		    [controller.rawProfile.buttons objectForKey: @"Home"];
# else
		    [controller.rawProfile.buttons objectForKey: @"Start"];
# endif

		[controller retrieveState];

		if (button.pressed)
			break;








|

|







543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559

	for (;;) {
		void *pool = objc_autoreleasePoolPush();
		OHGameController *controller =
		    [[OHGameController controllers] objectAtIndex: 0];
		OHGameControllerButton *button =
# ifdef OF_WII
		    [controller.profile.buttons objectForKey: @"Home"];
# else
		    [controller.profile.buttons objectForKey: @"Start"];
# endif

		[controller retrieveState];

		if (button.pressed)
			break;