From b60fa081a19b7c0aeb9b8b72776fa56a92e91ba8 Mon Sep 17 00:00:00 2001 From: MrJs <30782821+mrjschulte@users.noreply.github.com> Date: Mon, 12 Aug 2019 21:28:39 -0700 Subject: [PATCH] Add in more Apple Model numbers for RetroRating Added in all current Apple Model numbers and set a base rating of 19. Will happily revise if someone can tell me how the ratings are calculated. --- frontend/drivers/platform_darwin.m | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/frontend/drivers/platform_darwin.m b/frontend/drivers/platform_darwin.m index 8325ae87b8..2e3a7abb02 100644 --- a/frontend/drivers/platform_darwin.m +++ b/frontend/drivers/platform_darwin.m @@ -553,6 +553,51 @@ static int frontend_darwin_get_rating(void) if (strstr(model, "iPad5,3") || strstr(model, "iPad5,4")) return 18; + /* iPad Pro (12.9 Inch) */ + if (strstr(model, "iPad6,7") || strstr(model, "iPad6,8")) + return 19; + + /* iPad Pro (9.7 Inch) */ + if (strstr(model, "iPad6,3") || strstr(model, "iPad6,4")) + return 19; + + /* iPad 5th Generation */ + if (strstr(model, "iPad6,11") || strstr(model, "iPad6,12")) + return 19; + + /* iPad Pro (12.9 Inch 2nd Generation) */ + if (strstr(model, "iPad7,1") || strstr(model, "iPad7,2")) + return 19; + + /* iPad Pro (10.5 Inch) */ + if (strstr(model, "iPad7,3") || strstr(model, "iPad7,4")) + return 19; + + /* iPad Pro 6th Generation) */ + if (strstr(model, "iPad7,5") || strstr(model, "iPad7,6")) + return 19; + + /* iPad Pro (11 Inch) */ + if ( strstr(model, "iPad8,1") + || strstr(model, "iPad8,2") + || strstr(model, "iPad8,3") + || strstr(model, "iPad8,4") + ) + return 19; + + /* iPad Pro (12.9 3rd Generation) */ + if ( strstr(model, "iPad8,5") + || strstr(model, "iPad8,6") + || strstr(model, "iPad8,7") + || strstr(model, "iPad8,8") + ) + return 19; + + /* iPad Air 3rd Generation) */ + if ( strstr(model, "iPad11,3") + || strstr(model, "iPad11,4")) + return 19; + /* TODO/FIXME - - more ratings for more systems - determine rating more intelligently*/