ObjFW  Check-in [5504ee2b60]

Overview
Comment:OFGameController: Fix Nintendo 3DS / DS
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | gamecontroller
Files: files | file ages | folders
SHA3-256: 5504ee2b60f0e4ddb080b45f95cc2350eab6b291fa0041624b1f914845a4ae3d
User & Date: js on 2024-05-09 13:30:10
Other Links: branch diff | manifest | tags
Context
2024-05-09
15:02
Add interactive tests for OFGameController check-in: c31d8b6c37 user: js tags: gamecontroller
13:30
OFGameController: Fix Nintendo 3DS / DS check-in: 5504ee2b60 user: js tags: gamecontroller
13:10
OFGameController: Add missing import check-in: c5b37a9dd8 user: js tags: gamecontroller
Changes

Modified src/platform/Nintendo3DS/OFGameController.m from [eda9182c36] to [7d43ae2b1e].

39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
initControllers(void)
{
	void *pool = objc_autoreleasePoolPush();

	controllers = [[OFArray alloc] initWithObject:
	    [[[OFGameController alloc] of_init] autorelease]];

	objc_autoreleasePoolPop();
}

@implementation OFGameController
+ (OFArray OF_GENERIC(OFGameController *) *)controllers
{
	static OFOnceControl onceControl = OFOnceControlInitValue;








|







39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
initControllers(void)
{
	void *pool = objc_autoreleasePoolPush();

	controllers = [[OFArray alloc] initWithObject:
	    [[[OFGameController alloc] of_init] autorelease]];

	objc_autoreleasePoolPop(pool);
}

@implementation OFGameController
+ (OFArray OF_GENERIC(OFGameController *) *)controllers
{
	static OFOnceControl onceControl = OFOnceControlInitValue;

Modified src/platform/NintendoDS/OFGameController.m from [14f6fb7c04] to [ae87665579].

39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
initControllers(void)
{
	void *pool = objc_autoreleasePoolPush();

	controllers = [[OFArray alloc] initWithObject:
	    [[[OFGameController alloc] of_init] autorelease]];

	objc_autoreleasePoolPop();
}

@implementation OFGameController
+ (OFArray OF_GENERIC(OFGameController *) *)controllers
{
	static OFOnceControl onceControl = OFOnceControlInitValue;








|







39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
initControllers(void)
{
	void *pool = objc_autoreleasePoolPush();

	controllers = [[OFArray alloc] initWithObject:
	    [[[OFGameController alloc] of_init] autorelease]];

	objc_autoreleasePoolPop(pool);
}

@implementation OFGameController
+ (OFArray OF_GENERIC(OFGameController *) *)controllers
{
	static OFOnceControl onceControl = OFOnceControlInitValue;