Skip to content

Commit 30baf35

Browse files
committed
Deprecate retro rating + performance level
1 parent e04944d commit 30baf35

22 files changed

+2
-244
lines changed

frontend/drivers/platform_ctr.c

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -481,33 +481,6 @@ static void frontend_ctr_init(void* data)
481481
#endif
482482
}
483483

484-
static int frontend_ctr_get_rating(void)
485-
{
486-
u8 device_model = 0xFF;
487-
488-
/*(0 = O3DS, 1 = O3DSXL, 2 = N3DS, 3 = 2DS, 4 = N3DSXL, 5 = N2DSXL)*/
489-
CFGU_GetSystemModel(&device_model);
490-
491-
switch (device_model)
492-
{
493-
case 0:
494-
case 1:
495-
case 3:
496-
/*Old 3/2DS*/
497-
return 3;
498-
case 2:
499-
case 4:
500-
case 5:
501-
/*New 3/2DS*/
502-
return 6;
503-
default:
504-
/*Unknown Device Or Check Failed*/
505-
break;
506-
}
507-
508-
return -1;
509-
}
510-
511484
enum frontend_architecture frontend_ctr_get_arch(void)
512485
{
513486
return FRONTEND_ARCH_ARM;
@@ -642,7 +615,6 @@ frontend_ctx_driver_t frontend_ctx_ctr =
642615
frontend_ctr_shutdown, /* shutdown */
643616
frontend_ctr_get_name, /* get_name */
644617
frontend_ctr_get_os, /* get_os */
645-
frontend_ctr_get_rating, /* get_rating */
646618
NULL, /* load_content */
647619
frontend_ctr_get_arch, /* get_architecture */
648620
frontend_ctr_get_powerstate, /* get_powerstate */

frontend/drivers/platform_darwin.m

Lines changed: 0 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -496,104 +496,6 @@ static void frontend_darwin_get_env(int *argc, char *argv[],
496496
path_mkdir(g_defaults.dirs[DEFAULT_DIR_MENU_CONFIG]);
497497
}
498498

499-
static int frontend_darwin_get_rating(void)
500-
{
501-
char model[PATH_MAX_LENGTH] = {0};
502-
503-
frontend_darwin_get_name(model, sizeof(model));
504-
505-
/* iPhone 4S */
506-
if (strstr(model, "iPhone4,1"))
507-
return 8;
508-
509-
/* iPad 2/iPad Mini 1 */
510-
if (strstr(model, "iPad2"))
511-
return 9;
512-
513-
/* iPhone 5/5C */
514-
if (strstr(model, "iPhone5"))
515-
return 13;
516-
517-
/* iPhone 5S */
518-
if (strstr(model, "iPhone6,1") || strstr(model, "iPhone6,2"))
519-
return 14;
520-
521-
/* iPad Mini 2/3 */
522-
if ( strstr(model, "iPad4,4")
523-
|| strstr(model, "iPad4,5")
524-
|| strstr(model, "iPad4,6")
525-
|| strstr(model, "iPad4,7")
526-
|| strstr(model, "iPad4,8")
527-
|| strstr(model, "iPad4,9")
528-
)
529-
return 15;
530-
531-
/* iPad Air */
532-
if ( strstr(model, "iPad4,1")
533-
|| strstr(model, "iPad4,2")
534-
|| strstr(model, "iPad4,3")
535-
)
536-
return 16;
537-
538-
/* iPhone 6, iPhone 6 Plus */
539-
if (strstr(model, "iPhone7"))
540-
return 17;
541-
542-
/* iPad Air 2 */
543-
if (strstr(model, "iPad5,3") || strstr(model, "iPad5,4"))
544-
return 18;
545-
546-
/* iPad Pro (12.9 Inch) */
547-
if (strstr(model, "iPad6,7") || strstr(model, "iPad6,8"))
548-
return 19;
549-
550-
/* iPad Pro (9.7 Inch) */
551-
if (strstr(model, "iPad6,3") || strstr(model, "iPad6,4"))
552-
return 19;
553-
554-
/* iPad 5th Generation */
555-
if (strstr(model, "iPad6,11") || strstr(model, "iPad6,12"))
556-
return 19;
557-
558-
/* iPad Pro (12.9 Inch 2nd Generation) */
559-
if (strstr(model, "iPad7,1") || strstr(model, "iPad7,2"))
560-
return 19;
561-
562-
/* iPad Pro (10.5 Inch) */
563-
if (strstr(model, "iPad7,3") || strstr(model, "iPad7,4"))
564-
return 19;
565-
566-
/* iPad Pro 6th Generation) */
567-
if (strstr(model, "iPad7,5") || strstr(model, "iPad7,6"))
568-
return 19;
569-
570-
/* iPad Pro (11 Inch) */
571-
if ( strstr(model, "iPad8,1")
572-
|| strstr(model, "iPad8,2")
573-
|| strstr(model, "iPad8,3")
574-
|| strstr(model, "iPad8,4")
575-
)
576-
return 19;
577-
578-
/* iPad Pro (12.9 3rd Generation) */
579-
if ( strstr(model, "iPad8,5")
580-
|| strstr(model, "iPad8,6")
581-
|| strstr(model, "iPad8,7")
582-
|| strstr(model, "iPad8,8")
583-
)
584-
return 19;
585-
586-
/* iPad Air 3rd Generation) */
587-
if ( strstr(model, "iPad11,3")
588-
|| strstr(model, "iPad11,4"))
589-
return 19;
590-
591-
/* TODO/FIXME -
592-
- more ratings for more systems
593-
- determine rating more intelligently*/
594-
return -1;
595-
}
596-
597499
static enum frontend_powerstate frontend_darwin_get_powerstate(
598500
int *seconds, int *percent)
599501
{
@@ -1172,7 +1074,6 @@ static void frontend_darwin_content_loaded(void)
11721074
NULL, /* shutdown */
11731075
frontend_darwin_get_name, /* get_name */
11741076
frontend_darwin_get_os, /* get_os */
1175-
frontend_darwin_get_rating, /* get_rating */
11761077
frontend_darwin_content_loaded, /* content_loaded */
11771078
frontend_darwin_get_arch, /* get_architecture */
11781079
frontend_darwin_get_powerstate, /* get_powerstate */

frontend/drivers/platform_dos.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ static void frontend_dos_init(void *data)
3939

4040
/* TODO/FIXME - implement */
4141
static void frontend_dos_shutdown(bool unused) { }
42-
static int frontend_dos_get_rating(void) { return -1; }
4342

4443
enum frontend_architecture frontend_dos_get_arch(void)
4544
{
@@ -168,7 +167,6 @@ frontend_ctx_driver_t frontend_ctx_dos = {
168167
frontend_dos_shutdown, /* shutdown */
169168
NULL, /* get_name */
170169
NULL, /* get_os */
171-
frontend_dos_get_rating, /* get_rating */
172170
NULL, /* content_loaded */
173171
frontend_dos_get_arch, /* get_architecture */
174172
NULL, /* get_powerstate */

frontend/drivers/platform_emscripten.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,6 @@ frontend_ctx_driver_t frontend_ctx_emscripten = {
10671067
NULL, /* shutdown */
10681068
NULL, /* get_name */
10691069
NULL, /* get_os */
1070-
NULL, /* get_rating */
10711070
NULL, /* load_content */
10721071
NULL, /* get_architecture */
10731072
frontend_emscripten_get_powerstate, /* get_powerstate */

frontend/drivers/platform_gx.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -501,15 +501,6 @@ static bool frontend_gx_set_fork(enum frontend_fork fork_mode)
501501
}
502502
#endif
503503

504-
static int frontend_gx_get_rating(void)
505-
{
506-
#ifdef HW_RVL
507-
return 8;
508-
#else
509-
return 6;
510-
#endif
511-
}
512-
513504
static enum frontend_architecture frontend_gx_get_arch(void)
514505
{
515506
return FRONTEND_ARCH_PPC;
@@ -589,7 +580,6 @@ frontend_ctx_driver_t frontend_ctx_gx = {
589580
frontend_gx_shutdown, /* shutdown */
590581
NULL, /* get_name */
591582
NULL, /* get_os */
592-
frontend_gx_get_rating, /* get_rating */
593583
NULL, /* load_content */
594584
frontend_gx_get_arch, /* get_architecture */
595585
NULL, /* get_powerstate */

frontend/drivers/platform_orbis.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,6 @@ static void frontend_orbis_exitspawn(char *s, size_t len, char *args)
271271
frontend_orbis_exec(s, should_load_game);
272272
}
273273

274-
static int frontend_orbis_get_rating(void)
275-
{
276-
/* TODO/FIXME - needs a different rating */
277-
return 6;
278-
}
279-
280274
enum frontend_architecture frontend_orbis_get_arch(void)
281275
{
282276
return FRONTEND_ARCH_X86_64;
@@ -340,7 +334,6 @@ frontend_ctx_driver_t frontend_ctx_orbis = {
340334
frontend_orbis_shutdown,
341335
NULL, /* get_name */
342336
NULL, /* get_os */
343-
frontend_orbis_get_rating,
344337
NULL, /* content_loaded */
345338
frontend_orbis_get_arch,
346339
NULL,

frontend/drivers/platform_ps2.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,6 @@ static void frontend_ps2_exitspawn(char *s, size_t len, char *args)
425425
frontend_ps2_exec(s, should_load_content);
426426
}
427427

428-
static int frontend_ps2_get_rating(void) { return 4; }
429-
430428
enum frontend_architecture frontend_ps2_get_arch(void)
431429
{
432430
return FRONTEND_ARCH_MIPS;
@@ -556,7 +554,6 @@ frontend_ctx_driver_t frontend_ctx_ps2 = {
556554
NULL, /* shutdown */
557555
NULL, /* get_name */
558556
NULL, /* get_os */
559-
frontend_ps2_get_rating, /* get_rating */
560557
NULL, /* load_content */
561558
frontend_ps2_get_arch, /* get_architecture */
562559
NULL, /* get_powerstate */

frontend/drivers/platform_ps3.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -534,11 +534,6 @@ static void frontend_ps3_exitspawn(char *s, size_t len, char *args)
534534
#endif
535535
}
536536

537-
static int frontend_ps3_get_rating(void)
538-
{
539-
return 10;
540-
}
541-
542537
enum frontend_architecture frontend_ps3_get_arch(void)
543538
{
544539
return FRONTEND_ARCH_PPC;
@@ -665,7 +660,6 @@ frontend_ctx_driver_t frontend_ctx_ps3 = {
665660
NULL, /* shutdown */
666661
NULL, /* get_name */
667662
NULL, /* get_os */
668-
frontend_ps3_get_rating, /* get_rating */
669663
NULL, /* load_content */
670664
frontend_ps3_get_arch, /* get_architecture */
671665
NULL, /* get_powerstate */

frontend/drivers/platform_psp.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -428,15 +428,6 @@ static void frontend_psp_exitspawn(char *s, size_t len, char *args)
428428
frontend_psp_exec(s, should_load_content);
429429
}
430430

431-
static int frontend_psp_get_rating(void)
432-
{
433-
#ifdef VITA
434-
return 6; /* Go with a conservative figure for now. */
435-
#else
436-
return 4;
437-
#endif
438-
}
439-
440431
static enum frontend_powerstate frontend_psp_get_powerstate(int *seconds, int *percent)
441432
{
442433
enum frontend_powerstate ret = FRONTEND_POWERSTATE_NONE;
@@ -606,7 +597,6 @@ frontend_ctx_driver_t frontend_ctx_psp = {
606597
frontend_psp_shutdown, /* shutdown */
607598
NULL, /* get_name */
608599
NULL, /* get_os */
609-
frontend_psp_get_rating, /* get_rating */
610600
NULL, /* content_loaded */
611601
frontend_psp_get_arch, /* get_architecture */
612602
frontend_psp_get_powerstate,

frontend/drivers/platform_qnx.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@ static void frontend_qnx_shutdown(bool unused)
4343
bps_shutdown();
4444
}
4545

46-
static int frontend_qnx_get_rating(void)
47-
{
48-
/* TODO/FIXME - look at unique identifier per device and
49-
* determine rating for some */
50-
return -1;
51-
}
52-
5346
static void frontend_qnx_get_env_settings(int *argc, char *argv[],
5447
void *data, void *params_data)
5548
{
@@ -181,7 +174,6 @@ frontend_ctx_driver_t frontend_ctx_qnx = {
181174
frontend_qnx_shutdown,
182175
NULL, /* get_name */
183176
NULL, /* get_os */
184-
frontend_qnx_get_rating,
185177
NULL, /* load_content */
186178
frontend_qnx_get_arch, /* get_architecture */
187179
NULL, /* get_powerstate */

0 commit comments

Comments
 (0)