mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(Android) Start implementing frontend_android_get_rating
This commit is contained in:
parent
84fd553025
commit
febdd2bc8a
@ -20,6 +20,7 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/system_properties.h>
|
||||
|
||||
#include "platform_android.h"
|
||||
#include "../menu/menu_common.h"
|
||||
@ -702,8 +703,20 @@ static void frontend_android_shutdown(bool unused)
|
||||
|
||||
static int frontend_android_get_rating(void)
|
||||
{
|
||||
/* TODO/FIXME - look at unique identifier per device and
|
||||
* determine rating for some */
|
||||
char model_id[PROP_VALUE_MAX];
|
||||
int len;
|
||||
|
||||
len = __system_property_get("ro.product.model", model_id);
|
||||
(void)len;
|
||||
|
||||
RARCH_LOG("ro.product.model: (%s).\n", model_id);
|
||||
|
||||
if (!strcmp(model_id, "R800x"))
|
||||
return 6;
|
||||
else if (!strcmp(model_id, "GT-I9505"))
|
||||
return 12;
|
||||
else if (!strcmp(model_id, "SHIELD"))
|
||||
return 13;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user