mirror of
				https://github.com/opa334/TrollStore.git
				synced 2025-10-31 13:55:50 +08:00 
			
		
		
		
	Add support for M1 iPads
This commit is contained in:
		
							parent
							
								
									460b881934
								
							
						
					
					
						commit
						0b104cb4b0
					
				| @ -52,36 +52,25 @@ int IOGPU_get_command_queue_extra_refills_needed(void) | |||||||
|     struct utsname u; |     struct utsname u; | ||||||
|     uname(&u); |     uname(&u); | ||||||
|      |      | ||||||
|     // iPod Touch 7
 |  | ||||||
|     // iPhone 7
 |  | ||||||
|     // iPhone 11 & SE 2
 |  | ||||||
|     // iPhone 12
 |  | ||||||
|     // iPhone 13 & SE 3
 |  | ||||||
|     // iPad7,* has too many different models to list here, see theiphonewiki's "Models" page for info
 |  | ||||||
|     // iPad 9
 |  | ||||||
|     // iPad13,1-13,2 is the iPad Air 4 and 13,4-13,11 is the iPad Pro M1.
 |  | ||||||
|     if ( |     if ( | ||||||
|        strstr(u.machine, "iPod9,") |        strstr(u.machine, "iPod9,") // iPod Touch 7
 | ||||||
|     || strstr(u.machine, "iPhone9,") |     || strstr(u.machine, "iPhone9,") // iPhone 7
 | ||||||
|     || strstr(u.machine, "iPhone12,") |     || strstr(u.machine, "iPhone12,") // iPhone 11 & SE 2
 | ||||||
|     || strstr(u.machine, "iPhone13,") |     || strstr(u.machine, "iPhone13,") // iPhone 12
 | ||||||
|     || strstr(u.machine, "iPhone14,") |     || strstr(u.machine, "iPhone14,") // iPhone 13 & SE 3
 | ||||||
|     || strstr(u.machine, "iPad7,") |     || strstr(u.machine, "iPad7,") // iPad7,* has too many different models to list here, see theiphonewiki's "Models" page for info
 | ||||||
|     || strstr(u.machine, "iPad12,") |     || strstr(u.machine, "iPad12,") // iPad 9
 | ||||||
|     || strstr(u.machine, "iPad13,") |     || strstr(u.machine, "iPad13,") // iPad13,1-13,2 is the iPad Air 4 and 13,4-13,11 is the iPad Pro M1.
 | ||||||
|  |     || strstr(u.machine, "iPad14,") // iPad Mini 6
 | ||||||
|     ) |     ) | ||||||
|     { |     { | ||||||
|         return 1; |         return 1; | ||||||
|     } |     } | ||||||
|     // iPhone 8, X
 |  | ||||||
|     // iPhone XS, XR
 |  | ||||||
|     // iPad Pro A12Z
 |  | ||||||
|     // iPad 8 A12
 |  | ||||||
|     else if ( |     else if ( | ||||||
|        strstr(u.machine, "iPhone10,") |        strstr(u.machine, "iPhone10,") // iPhone 8, X
 | ||||||
|     || strstr(u.machine, "iPhone11,") |     || strstr(u.machine, "iPhone11,") // iPhone XS, XR
 | ||||||
|     || strstr(u.machine, "iPad8,") |     || strstr(u.machine, "iPad8,") // iPad Pro A12Z
 | ||||||
|     || strstr(u.machine, "iPad11,") |     || strstr(u.machine, "iPad11,") // iPad 8 A12
 | ||||||
|     ) |     ) | ||||||
|     { |     { | ||||||
|         return 3; |         return 3; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 opa334
						opa334