From 86a47b7dd82a3aadf6b007b33a80c41162b22019 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 7 Apr 2015 21:02:34 +0200 Subject: [PATCH] (Apple) Change iPad Air / Mini 2 and 3 rating levels --- frontend/drivers/platform_apple.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/frontend/drivers/platform_apple.c b/frontend/drivers/platform_apple.c index d77a12d02a..1b2f6d0274 100644 --- a/frontend/drivers/platform_apple.c +++ b/frontend/drivers/platform_apple.c @@ -262,13 +262,26 @@ static int frontend_apple_get_rating(void) if (strstr(model, "iPhone6,1") || strstr(model, "iPhone6,2")) return 14; - /* iPad Air/iPad Mini 2 */ - if (strstr(model, "iPad4")) + /* iPad Air */ + if ( strstr(model, "iPad4,1") + || strstr(model, "iPad4,2") + || strstr(model, "iPad4,3") + ) return 15; + + /* iPad Mini 2/3 */ + if ( strstr(model, "iPad4,4") + || strstr(model, "iPad4,5") + || strstr(model, "iPad4,6") + || strstr(model, "iPad4,7") + || strstr(model, "iPad4,8") + || strstr(model, "iPad4,9") + ) + return 16; /* iPhone 6, iPhone 6 Plus */ if (strstr(model, "iPhone7")) - return 16; + return 17; /* iPad Air 2 */ if (strstr(model, "iPad5,3") || strstr(model, "iPad5,4"))