mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2025-01-11 19:39:09 +01:00
Added GRB ratings.
This commit is contained in:
parent
0fc21f82a3
commit
04c4025766
BIN
data/images/grb_12.png
Normal file
BIN
data/images/grb_12.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
BIN
data/images/grb_15.png
Normal file
BIN
data/images/grb_15.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
data/images/grb_18.png
Normal file
BIN
data/images/grb_18.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
BIN
data/images/grb_a.png
Normal file
BIN
data/images/grb_a.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
@ -699,12 +699,14 @@ const char * GameTDB::RatingToString(int rating)
|
|||||||
{
|
{
|
||||||
switch(rating)
|
switch(rating)
|
||||||
{
|
{
|
||||||
case 0:
|
case GAMETDB_RATING_TYPE_CERO:
|
||||||
return "CERO";
|
return "CERO";
|
||||||
case 1:
|
case GAMETDB_RATING_TYPE_ESRB:
|
||||||
return "ESRB";
|
return "ESRB";
|
||||||
case 2:
|
case GAMETDB_RATING_TYPE_PEGI:
|
||||||
return "PEGI";
|
return "PEGI";
|
||||||
|
case GAMETDB_RATING_TYPE_GRB:
|
||||||
|
return "GRB";
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -729,13 +731,16 @@ int GameTDB::GetRating(const char * id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(strncmp(rating_text, "CERO", 4) == 0)
|
if(strncmp(rating_text, "CERO", 4) == 0)
|
||||||
rating = 0;
|
rating = GAMETDB_RATING_TYPE_CERO;
|
||||||
|
|
||||||
else if(strncmp(rating_text, "ESRB", 4) == 0)
|
else if(strncmp(rating_text, "ESRB", 4) == 0)
|
||||||
rating = 1;
|
rating = GAMETDB_RATING_TYPE_ESRB;
|
||||||
|
|
||||||
else if(strncmp(rating_text, "PEGI", 4) == 0)
|
else if(strncmp(rating_text, "PEGI", 4) == 0)
|
||||||
rating = 2;
|
rating = GAMETDB_RATING_TYPE_PEGI;
|
||||||
|
|
||||||
|
else if(strncmp(rating_text, "GRB", 4) == 0)
|
||||||
|
rating = GAMETDB_RATING_TYPE_GRB;
|
||||||
|
|
||||||
delete [] data;
|
delete [] data;
|
||||||
|
|
||||||
|
@ -29,6 +29,14 @@
|
|||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
GAMETDB_RATING_TYPE_CERO,
|
||||||
|
GAMETDB_RATING_TYPE_ESRB,
|
||||||
|
GAMETDB_RATING_TYPE_PEGI,
|
||||||
|
GAMETDB_RATING_TYPE_GRB
|
||||||
|
};
|
||||||
|
|
||||||
typedef struct _Accessory
|
typedef struct _Accessory
|
||||||
{
|
{
|
||||||
string Name;
|
string Name;
|
||||||
|
@ -68,7 +68,7 @@ u32 IOSPATCH_AHBPROT()
|
|||||||
|
|
||||||
bool loadIOS(int ios, bool launch_game)
|
bool loadIOS(int ios, bool launch_game)
|
||||||
{
|
{
|
||||||
gprintf("Reloading into IOS %i from %i (AHBPROT: %u)...", ios, IOS_GetVersion(), HAVE_AHBPROT);
|
gprintf("Reloading into IOS %i from %i (AHBPROT: %u)...\n", ios, IOS_GetVersion(), HAVE_AHBPROT);
|
||||||
|
|
||||||
Close_Inputs();
|
Close_Inputs();
|
||||||
DeviceHandler::Instance()->UnMountAll();
|
DeviceHandler::Instance()->UnMountAll();
|
||||||
|
@ -63,6 +63,11 @@ extern const u8 cero_c_png[];
|
|||||||
extern const u8 cero_d_png[];
|
extern const u8 cero_d_png[];
|
||||||
extern const u8 cero_z_png[];
|
extern const u8 cero_z_png[];
|
||||||
|
|
||||||
|
extern const u8 grb_a_png[];
|
||||||
|
extern const u8 grb_12_png[];
|
||||||
|
extern const u8 grb_15_png[];
|
||||||
|
extern const u8 grb_18_png[];
|
||||||
|
|
||||||
extern const u8 pegi_3_png[];
|
extern const u8 pegi_3_png[];
|
||||||
extern const u8 pegi_7_png[];
|
extern const u8 pegi_7_png[];
|
||||||
extern const u8 pegi_12_png[];
|
extern const u8 pegi_12_png[];
|
||||||
@ -341,8 +346,7 @@ void CMenu::_textGameInfo(void)
|
|||||||
m_rating.fromPNG(norating_png);
|
m_rating.fromPNG(norating_png);
|
||||||
switch(gameinfo.RatingType)
|
switch(gameinfo.RatingType)
|
||||||
{
|
{
|
||||||
case 0:
|
case GAMETDB_RATING_TYPE_CERO:
|
||||||
//CERO
|
|
||||||
if (gameinfo.RatingValue == "A")
|
if (gameinfo.RatingValue == "A")
|
||||||
m_rating.fromPNG(cero_a_png);
|
m_rating.fromPNG(cero_a_png);
|
||||||
else if (gameinfo.RatingValue == "B")
|
else if (gameinfo.RatingValue == "B")
|
||||||
@ -354,8 +358,7 @@ void CMenu::_textGameInfo(void)
|
|||||||
else if (gameinfo.RatingValue == "Z")
|
else if (gameinfo.RatingValue == "Z")
|
||||||
m_rating.fromPNG(cero_z_png);
|
m_rating.fromPNG(cero_z_png);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case GAMETDB_RATING_TYPE_ESRB:
|
||||||
//ESRB
|
|
||||||
if (gameinfo.RatingValue == "AO")
|
if (gameinfo.RatingValue == "AO")
|
||||||
m_rating.fromPNG(esrb_ao_png);
|
m_rating.fromPNG(esrb_ao_png);
|
||||||
else if (gameinfo.RatingValue == "E")
|
else if (gameinfo.RatingValue == "E")
|
||||||
@ -369,8 +372,7 @@ void CMenu::_textGameInfo(void)
|
|||||||
else if (gameinfo.RatingValue == "M")
|
else if (gameinfo.RatingValue == "M")
|
||||||
m_rating.fromPNG(esrb_m_png);
|
m_rating.fromPNG(esrb_m_png);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case GAMETDB_RATING_TYPE_PEGI:
|
||||||
//PEGI
|
|
||||||
if (gameinfo.RatingValue == "3")
|
if (gameinfo.RatingValue == "3")
|
||||||
m_rating.fromPNG(pegi_3_png);
|
m_rating.fromPNG(pegi_3_png);
|
||||||
else if (gameinfo.RatingValue == "7")
|
else if (gameinfo.RatingValue == "7")
|
||||||
@ -382,6 +384,16 @@ void CMenu::_textGameInfo(void)
|
|||||||
else if (gameinfo.RatingValue == "18")
|
else if (gameinfo.RatingValue == "18")
|
||||||
m_rating.fromPNG(pegi_18_png);
|
m_rating.fromPNG(pegi_18_png);
|
||||||
break;
|
break;
|
||||||
|
case GAMETDB_RATING_TYPE_GRB:
|
||||||
|
if (gameinfo.RatingValue == "a")
|
||||||
|
m_rating.fromPNG(grb_a_png);
|
||||||
|
else if (gameinfo.RatingValue == "12")
|
||||||
|
m_rating.fromPNG(grb_12_png);
|
||||||
|
else if (gameinfo.RatingValue == "15")
|
||||||
|
m_rating.fromPNG(grb_15_png);
|
||||||
|
else if (gameinfo.RatingValue == "18")
|
||||||
|
m_rating.fromPNG(grb_18_png);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user