mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2025-01-11 19:39:09 +01:00
-fixed small warning message when compiling (I just dont
like warning messages lol) -changed coverflow color detection again, it's hopefully a bit more efficient now
This commit is contained in:
parent
d611849d6f
commit
347bc6a110
@ -1329,34 +1329,50 @@ void CCoverFlow::_drawCoverBox(int i, bool mirror, CCoverFlow::DrawMode dm)
|
|||||||
}
|
}
|
||||||
if (dm == CCoverFlow::CFDR_NORMAL)
|
if (dm == CCoverFlow::CFDR_NORMAL)
|
||||||
{
|
{
|
||||||
|
u32 casecolor = m_items[m_covers[i].index].hdr->hdr.casecolor;
|
||||||
// set dvd box texture, depending on game
|
// set dvd box texture, depending on game
|
||||||
if (m_items[m_covers[i].index].hdr->hdr.casecolor == 0xFF0000 ||
|
if(casecolor == 0xFFFFFF)
|
||||||
_checkCoverColor((char *)m_items[m_covers[i].index].hdr->hdr.id,red,red_len))
|
GX_InitTexObj(&texObj, m_dvdSkin.data.get(), m_dvdSkin.width, m_dvdSkin.height, m_dvdSkin.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
||||||
{
|
else if (casecolor == 0xFF0000)
|
||||||
GX_InitTexObj(&texObj, m_dvdSkin_Red.data.get(), m_dvdSkin_Red.width, m_dvdSkin_Red.height, m_dvdSkin_Red.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
GX_InitTexObj(&texObj, m_dvdSkin_Red.data.get(), m_dvdSkin_Red.width, m_dvdSkin_Red.height, m_dvdSkin_Red.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
||||||
}
|
else if (casecolor == 0x000000 || casecolor == 0x181919)
|
||||||
else if (m_items[m_covers[i].index].hdr->hdr.casecolor == 0x000000 ||
|
GX_InitTexObj(&texObj, m_dvdSkin_Black.data.get(), m_dvdSkin_Black.width, m_dvdSkin_Black.height, m_dvdSkin_Black.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
||||||
m_items[m_covers[i].index].hdr->hdr.casecolor == 0x181919 ||
|
else if (casecolor == 0xFCFF00)
|
||||||
_checkCoverColor((char *)m_items[m_covers[i].index].hdr->hdr.id,black,black_len))
|
GX_InitTexObj(&texObj, m_dvdSkin_Yellow.data.get(), m_dvdSkin_Yellow.width, m_dvdSkin_Yellow.height, m_dvdSkin_Yellow.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
||||||
|
else if (casecolor == 0x01A300)
|
||||||
|
GX_InitTexObj(&texObj, m_dvdSkin_GreenOne.data.get(), m_dvdSkin_GreenOne.width, m_dvdSkin_GreenOne.height, m_dvdSkin_GreenOne.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
||||||
|
else if (casecolor == 0x00E360)
|
||||||
|
GX_InitTexObj(&texObj, m_dvdSkin_GreenTwo.data.get(), m_dvdSkin_GreenTwo.width, m_dvdSkin_GreenTwo.height, m_dvdSkin_GreenTwo.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
||||||
|
else if(_checkCoverColor((char *)m_items[m_covers[i].index].hdr->hdr.id,red,red_len))
|
||||||
{
|
{
|
||||||
|
m_items[m_covers[i].index].hdr->hdr.casecolor = 0xFF0000;
|
||||||
|
GX_InitTexObj(&texObj, m_dvdSkin_Red.data.get(), m_dvdSkin_Red.width, m_dvdSkin_Red.height, m_dvdSkin_Red.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
||||||
|
}
|
||||||
|
else if(_checkCoverColor((char *)m_items[m_covers[i].index].hdr->hdr.id,black,black_len))
|
||||||
|
{
|
||||||
|
m_items[m_covers[i].index].hdr->hdr.casecolor = 0x000000;
|
||||||
GX_InitTexObj(&texObj, m_dvdSkin_Black.data.get(), m_dvdSkin_Black.width, m_dvdSkin_Black.height, m_dvdSkin_Black.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
GX_InitTexObj(&texObj, m_dvdSkin_Black.data.get(), m_dvdSkin_Black.width, m_dvdSkin_Black.height, m_dvdSkin_Black.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
||||||
}
|
}
|
||||||
else if (m_items[m_covers[i].index].hdr->hdr.casecolor == 0xFCFF00 ||
|
else if(_checkCoverColor((char *)m_items[m_covers[i].index].hdr->hdr.id,yellow,yellow_len))
|
||||||
_checkCoverColor((char *)m_items[m_covers[i].index].hdr->hdr.id,yellow,yellow_len))
|
|
||||||
{
|
{
|
||||||
|
m_items[m_covers[i].index].hdr->hdr.casecolor = 0xFCFF00;
|
||||||
GX_InitTexObj(&texObj, m_dvdSkin_Yellow.data.get(), m_dvdSkin_Yellow.width, m_dvdSkin_Yellow.height, m_dvdSkin_Yellow.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
GX_InitTexObj(&texObj, m_dvdSkin_Yellow.data.get(), m_dvdSkin_Yellow.width, m_dvdSkin_Yellow.height, m_dvdSkin_Yellow.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
||||||
}
|
}
|
||||||
else if (m_items[m_covers[i].index].hdr->hdr.casecolor == 0x01A300 ||
|
else if(_checkCoverColor((char *)m_items[m_covers[i].index].hdr->hdr.id,greenOne,greenOne_len))
|
||||||
_checkCoverColor((char *)m_items[m_covers[i].index].hdr->hdr.id,greenOne,greenOne_len))
|
|
||||||
{
|
{
|
||||||
|
m_items[m_covers[i].index].hdr->hdr.casecolor = 0x01A300;
|
||||||
GX_InitTexObj(&texObj, m_dvdSkin_GreenOne.data.get(), m_dvdSkin_GreenOne.width, m_dvdSkin_GreenOne.height, m_dvdSkin_GreenOne.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
GX_InitTexObj(&texObj, m_dvdSkin_GreenOne.data.get(), m_dvdSkin_GreenOne.width, m_dvdSkin_GreenOne.height, m_dvdSkin_GreenOne.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
||||||
}
|
}
|
||||||
else if (m_items[m_covers[i].index].hdr->hdr.casecolor == 0x00E360 ||
|
else if(_checkCoverColor((char *)m_items[m_covers[i].index].hdr->hdr.id,greenTwo,greenTwo_len))
|
||||||
_checkCoverColor((char *)m_items[m_covers[i].index].hdr->hdr.id,greenTwo,greenTwo_len))
|
|
||||||
{
|
{
|
||||||
|
m_items[m_covers[i].index].hdr->hdr.casecolor = 0x00E360;
|
||||||
GX_InitTexObj(&texObj, m_dvdSkin_GreenTwo.data.get(), m_dvdSkin_GreenTwo.width, m_dvdSkin_GreenTwo.height, m_dvdSkin_GreenTwo.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
GX_InitTexObj(&texObj, m_dvdSkin_GreenTwo.data.get(), m_dvdSkin_GreenTwo.width, m_dvdSkin_GreenTwo.height, m_dvdSkin_GreenTwo.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
||||||
}
|
}
|
||||||
else GX_InitTexObj(&texObj, m_dvdSkin.data.get(), m_dvdSkin.width, m_dvdSkin.height, m_dvdSkin.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
else
|
||||||
|
{
|
||||||
|
m_items[m_covers[i].index].hdr->hdr.casecolor = 0xFFFFFF;
|
||||||
|
GX_InitTexObj(&texObj, m_dvdSkin.data.get(), m_dvdSkin.width, m_dvdSkin.height, m_dvdSkin.format, GX_CLAMP, GX_CLAMP, GX_FALSE);
|
||||||
|
}
|
||||||
GX_LoadTexObj(&texObj, GX_TEXMAP0);
|
GX_LoadTexObj(&texObj, GX_TEXMAP0);
|
||||||
}
|
}
|
||||||
GX_Begin(GX_QUADS, GX_VTXFMT0, g_boxMeshQSize);
|
GX_Begin(GX_QUADS, GX_VTXFMT0, g_boxMeshQSize);
|
||||||
|
@ -483,7 +483,7 @@ void Asciify( wchar_t *str )
|
|||||||
|
|
||||||
void Asciify2( char *str )
|
void Asciify2( char *str )
|
||||||
{
|
{
|
||||||
int i=0;
|
u8 i=0;
|
||||||
for( i=0; i < strlen(str); ++i )
|
for( i=0; i < strlen(str); ++i )
|
||||||
{
|
{
|
||||||
if( str[i] < 0x20 || str[i] > 0x7F )
|
if( str[i] < 0x20 || str[i] > 0x7F )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user