mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 13:14:04 +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 <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
|
#include <sys/system_properties.h>
|
||||||
|
|
||||||
#include "platform_android.h"
|
#include "platform_android.h"
|
||||||
#include "../menu/menu_common.h"
|
#include "../menu/menu_common.h"
|
||||||
@ -702,8 +703,20 @@ static void frontend_android_shutdown(bool unused)
|
|||||||
|
|
||||||
static int frontend_android_get_rating(void)
|
static int frontend_android_get_rating(void)
|
||||||
{
|
{
|
||||||
/* TODO/FIXME - look at unique identifier per device and
|
char model_id[PROP_VALUE_MAX];
|
||||||
* determine rating for some */
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user