Took out debug TXT that I left in the coverwall. fixed some stuff in the gameinfo window.

This commit is contained in:
giantpune 2009-06-13 06:32:02 +00:00
parent 2ee3521ff5
commit 2874d9672c
4 changed files with 66 additions and 74 deletions

View File

@ -518,7 +518,7 @@ void GuiGameGrid::Draw()
btnRowUp->Draw(); btnRowUp->Draw();
btnRowDown->Draw(); btnRowDown->Draw();
debugTxt->Draw(); //debugTxt->Draw();
this->UpdateEffects(); this->UpdateEffects();
} }
@ -529,14 +529,7 @@ void GuiGameGrid::Draw()
void GuiGameGrid::ChangeRows(int n) void GuiGameGrid::ChangeRows(int n)
{ {
rows=n;
//resize game covers
rows=n;
for(int i=0; i < gameCnt; i++) { for(int i=0; i < gameCnt; i++) {
coverImg[i] = new GuiImage(cover[i]); coverImg[i] = new GuiImage(cover[i]);
coverImg[i]->SetWidescreen(CFG.widescreen); coverImg[i]->SetWidescreen(CFG.widescreen);
@ -740,9 +733,9 @@ void GuiGameGrid::Update(GuiTrigger * t)
} }
//if (realCnt!=0)goRight=(12*(pagesize-realCnt)/2); //if (realCnt!=0)goRight=(12*(pagesize-realCnt)/2);
// for debugging // for debugging
snprintf(debugbuffer, sizeof(debugbuffer), "gameCnt: %i listOffset: %i", gameCnt,listOffset); //snprintf(debugbuffer, sizeof(debugbuffer), "count: %i listOffset: %i", count,listOffset);
debugTxt->SetText(debugbuffer); //debugTxt->SetText(debugbuffer);
debugTxt->Draw(); // debugTxt->Draw();
btnRight->Update(t); btnRight->Update(t);
btnLeft->Update(t); btnLeft->Update(t);
@ -799,7 +792,7 @@ void GuiGameGrid::Update(GuiTrigger * t)
// navigation // navigation
if(!focus || gameCnt <= pagesize || (game[bob[0]]->GetEffect() && game[bob[pagesize-1]]->GetEffect())) if(!focus || gameCnt < pagesize || (game[bob[0]]->GetEffect() && game[bob[pagesize-1]]->GetEffect()))
return; // skip navigation return; // skip navigation
if (t->Left() || btnLeft->GetState() == STATE_CLICKED) { if (t->Left() || btnLeft->GetState() == STATE_CLICKED) {
@ -810,7 +803,6 @@ void GuiGameGrid::Update(GuiTrigger * t)
if(!((buttons & WPAD_BUTTON_A) || (buttons & WPAD_BUTTON_MINUS) || t->Left())) { if(!((buttons & WPAD_BUTTON_A) || (buttons & WPAD_BUTTON_MINUS) || t->Left())) {
btnLeft->ResetState(); btnLeft->ResetState();
speed = SHIFT_SPEED; speed = SHIFT_SPEED;
//goback=1;
return; return;
}goLeft=12; }goLeft=12;
@ -825,11 +817,7 @@ void GuiGameGrid::Update(GuiTrigger * t)
if (rows==2)coverImg[(listOffset + pagesize-i) % gameCnt]->SetPosition(0,-50);// only for 2 rows if (rows==2)coverImg[(listOffset + pagesize-i) % gameCnt]->SetPosition(0,-50);// only for 2 rows
} }
//game[bob[pagesize-1]]->SetPosition(0, RADIUS);
if (mover<11){ if (mover<11){
//for (int i=0; i<pagesize; i++) {
//game[bob[i]]->SetEffect(EFFECT_GOROUND, -speed, DEG_OFFSET, RADIUS, 270-(pagesize-2*i-3)*DEG_OFFSET/2, 1, 0, RADIUS);
if(CFG.widescreen) if(CFG.widescreen)
{ {
if (rows==1){ if (rows==1){
@ -1035,7 +1023,6 @@ void GuiGameGrid::Update(GuiTrigger * t)
} }
mover++; mover++;
goLeft--; goLeft--;
//if (mover2<12)mover2++;
} }
else {goLeft=0;mover=0; else {goLeft=0;mover=0;
@ -1045,8 +1032,6 @@ void GuiGameGrid::Update(GuiTrigger * t)
for (int i=0; i<pagesize; i++) { for (int i=0; i<pagesize; i++) {
bob[i] = (firstPic+i)%pagesize; bob[i] = (firstPic+i)%pagesize;
} }
snprintf(debugbuffer, sizeof(debugbuffer), "pagesize: %i listOffset: %i gameCnt: %i firstPic: %i", pagesize,listOffset,gameCnt,firstPic);
debugTxt->SetText(debugbuffer);
} }
} }
@ -1059,7 +1044,6 @@ void GuiGameGrid::Update(GuiTrigger * t)
if(!((buttons & WPAD_BUTTON_A) || (buttons & WPAD_BUTTON_PLUS) || t->Right())) { if(!((buttons & WPAD_BUTTON_A) || (buttons & WPAD_BUTTON_PLUS) || t->Right())) {
btnRight->ResetState(); btnRight->ResetState();
speed=SHIFT_SPEED; speed=SHIFT_SPEED;
//goback=1;
return; return;
} }
goRight=12; goRight=12;
@ -1072,7 +1056,6 @@ void GuiGameGrid::Update(GuiTrigger * t)
if (mover<11){ if (mover<11){
//int offset1 = listOffset-1, offset2 = listOffset-2;
for (int i=1; i<(rows+1); i++){ for (int i=1; i<(rows+1); i++){
int tmp = listOffset-i; int tmp = listOffset-i;
@ -1085,11 +1068,6 @@ void GuiGameGrid::Update(GuiTrigger * t)
if (rows==3)coverImg[tmp]->SetPosition(0,-80);// only for 3 rows if (rows==3)coverImg[tmp]->SetPosition(0,-80);// only for 3 rows
if (rows==2)coverImg[tmp]->SetPosition(0,-50);// only for 2 rows if (rows==2)coverImg[tmp]->SetPosition(0,-50);// only for 2 rows
} }
//if (listOffset==0)listOffset=(gameCnt-1);
//game[bob[5]]->SetImage(coverImg[listOffset-rows]); rows==1
//if (listOffset==0)listOffset=(gameCnt-1);
//game[bob[14]]->SetImage(coverImg[listOffset-2]);
//game[bob[15]]->SetImage(coverImg[listOffset-1]);
if(CFG.widescreen) if(CFG.widescreen)
{ {
if (rows==1){ if (rows==1){
@ -1295,7 +1273,6 @@ void GuiGameGrid::Update(GuiTrigger * t)
} }
mover++; mover++;
goRight--; goRight--;
//if (mover2>-12)mover2--;
} }
else {goRight=0;mover=0; else {goRight=0;mover=0;

View File

@ -65,7 +65,7 @@ showGameInfo(char *ID, u8 *headerID)
int newline=1; int newline=1;
u8 page =1; u8 page =1;
// GuiText * debugTxt = NULL; // GuiText * debugTxt = NULL;
GuiImageData * playersImgData = NULL; GuiImageData * playersImgData = NULL;
GuiImage * playersImg = NULL; GuiImage * playersImg = NULL;
@ -116,6 +116,7 @@ showGameInfo(char *ID, u8 *headerID)
GuiText * genreTxt = NULL; GuiText * genreTxt = NULL;
GuiText * betaTxt = NULL; GuiText * betaTxt = NULL;
GuiText * beta1Txt = NULL; GuiText * beta1Txt = NULL;
// GuiText ** wifiTxt = NULL;
GuiWindow gameinfoWindow(600,308); GuiWindow gameinfoWindow(600,308);
gameinfoWindow.SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE); gameinfoWindow.SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE);
@ -186,90 +187,90 @@ showGameInfo(char *ID, u8 *headerID)
char linebuf2[100] = ""; char linebuf2[100] = "";
// set images for required input // set images for required input
for (int i=0;strcmp(gameinfo.accessories_required[i+1],"") != 0;i++) for (int i=1;strcmp(gameinfo.accessories_required[i],"") != 0;i++)
{ {
if (strcmp(gameinfo.accessories_required[i+1],"nunchuk")==0) if (strcmp(gameinfo.accessories_required[i],"nunchuk")==0)
{nunchuckImgData = new GuiImageData(nunchuckR_png);nunchuk=1;} {nunchuckImgData = new GuiImageData(nunchuckR_png);nunchuk=1;}
else else
nunchuckImgData = new GuiImageData(nunchuck_png); nunchuckImgData = new GuiImageData(nunchuck_png);
if (strcmp(gameinfo.accessories_required[i+1],"classiccontroller")==0) if (strcmp(gameinfo.accessories_required[i],"classiccontroller")==0)
{classiccontrollerImgData = new GuiImageData(classiccontrollerR_png);classiccontroller=1;} {classiccontrollerImgData = new GuiImageData(classiccontrollerR_png);classiccontroller=1;}
else else
classiccontrollerImgData = new GuiImageData(classiccontroller_png); classiccontrollerImgData = new GuiImageData(classiccontroller_png);
if (strcmp(gameinfo.accessories_required[i+1],"guitar")==0) if (strcmp(gameinfo.accessories_required[i],"guitar")==0)
{guitarImgData = new GuiImageData(guitarR_png);guitar=1;} {guitarImgData = new GuiImageData(guitarR_png);guitar=1;}
else else
guitarImgData = new GuiImageData(guitar_png); guitarImgData = new GuiImageData(guitar_png);
if (strcmp(gameinfo.accessories_required[i+1],"gamecube")==0) if (strcmp(gameinfo.accessories_required[i],"gamecube")==0)
{gamecubeImgData = new GuiImageData(gcncontrollerR_png);gamecube=1;} {gamecubeImgData = new GuiImageData(gcncontrollerR_png);gamecube=1;}
else else
gamecubeImgData = new GuiImageData(gcncontroller_png); gamecubeImgData = new GuiImageData(gcncontroller_png);
if (strcmp(gameinfo.accessories_required[i+1],"wheel")==0) if (strcmp(gameinfo.accessories_required[i],"wheel")==0)
{wheelImgData = new GuiImageData(wheelR_png);wheel=1;} {wheelImgData = new GuiImageData(wheelR_png);wheel=1;}
else else
wheelImgData = new GuiImageData(wheel_png); wheelImgData = new GuiImageData(wheel_png);
if (strcmp(gameinfo.accessories_required[i+1],"motionplus")==0) if (strcmp(gameinfo.accessories_required[i],"motionplus")==0)
{motionplusImgData = new GuiImageData(motionplusR_png);motionplus=1;} {motionplusImgData = new GuiImageData(motionplusR_png);motionplus=1;}
else else
motionplusImgData = new GuiImageData(motionplus_png); motionplusImgData = new GuiImageData(motionplus_png);
if (strcmp(gameinfo.accessories_required[i+1],"drums")==0) if (strcmp(gameinfo.accessories_required[i],"drums")==0)
{drumsImgData = new GuiImageData(drumsR_png);drums=1;} {drumsImgData = new GuiImageData(drumsR_png);drums=1;}
else else
drumsImgData = new GuiImageData(drums_png); drumsImgData = new GuiImageData(drums_png);
if (strcmp(gameinfo.accessories_required[i+1],"microphone")==0) if (strcmp(gameinfo.accessories_required[i],"microphone")==0)
{microphoneImgData = new GuiImageData(microphoneR_png);microphone=1;} {microphoneImgData = new GuiImageData(microphoneR_png);microphone=1;}
else else
microphoneImgData = new GuiImageData(microphone_png); microphoneImgData = new GuiImageData(microphone_png);
if (strcmp(gameinfo.accessories_required[i+1],"balanceboard")==0) if (strcmp(gameinfo.accessories_required[i],"balanceboard")==0)
{balanceboardImgData = new GuiImageData(balanceboardR_png);balanceboard=1;} {balanceboardImgData = new GuiImageData(balanceboardR_png);balanceboard=1;}
else else
balanceboardImgData = new GuiImageData(balanceboard_png); balanceboardImgData = new GuiImageData(balanceboard_png);
if (strcmp(gameinfo.accessories_required[i+1],"dancepad")==0) if (strcmp(gameinfo.accessories_required[i],"dancepad")==0)
{dancepadImgData = new GuiImageData(dancepadR_png);dancepad=1;} {dancepadImgData = new GuiImageData(dancepadR_png);dancepad=1;}
else else
dancepadImgData = new GuiImageData(dancepad_png); dancepadImgData = new GuiImageData(dancepad_png);
} }
for (int i=0;strcmp(gameinfo.accessories[i+1],"") != 0;i++) for (int i=1;strcmp(gameinfo.accessories[i],"") != 0;i++)
{ {
if (strcmp(gameinfo.accessories_required[i],"classiccontroller")==0) if (strcmp(gameinfo.accessories[i],"classiccontroller")==0)
classiccontroller=1; classiccontroller=1;
if (strcmp(gameinfo.accessories[i+1],"nunchuk")==0) if (strcmp(gameinfo.accessories[i],"nunchuk")==0)
{nunchuk=1;} {nunchuk=1;}
if (strcmp(gameinfo.accessories[i+1],"guitar")==0) if (strcmp(gameinfo.accessories[i],"guitar")==0)
guitar=1; guitar=1;
if (strcmp(gameinfo.accessories_required[i],"drums")==0) if (strcmp(gameinfo.accessories[i],"drums")==0)
drums=1; drums=1;
if (strcmp(gameinfo.accessories_required[i],"dancepad")==0) if (strcmp(gameinfo.accessories[i],"dancepad")==0)
dancepad=1; dancepad=1;
if (strcmp(gameinfo.accessories_required[i],"motionplus")==0) if (strcmp(gameinfo.accessories[i],"motionplus")==0)
motionplus=1; motionplus=1;
if (strcmp(gameinfo.accessories_required[i],"wheel")==0) if (strcmp(gameinfo.accessories[i],"wheel")==0)
wheel=1; wheel=1;
if (strcmp(gameinfo.accessories_required[i],"balanceboard")==0) if (strcmp(gameinfo.accessories[i],"balanceboard")==0)
balanceboard=1; balanceboard=1;
if (strcmp(gameinfo.accessories_required[i],"microphone")==0) if (strcmp(gameinfo.accessories[i],"microphone")==0)
microphone=1; microphone=1;
if (strcmp(gameinfo.accessories_required[i],"gamecube")==0) if (strcmp(gameinfo.accessories[i],"gamecube")==0)
gamecube=1; gamecube=1;
} }
@ -415,6 +416,12 @@ showGameInfo(char *ID, u8 *headerID)
wifiplayersImgData= new GuiImageData(wifi4_png);} wifiplayersImgData= new GuiImageData(wifi4_png);}
if (atoi(gameinfo.wifiplayers)>4){ if (atoi(gameinfo.wifiplayers)>4){
wifiplayersImgData= new GuiImageData(wifi8_png);} wifiplayersImgData= new GuiImageData(wifi8_png);}
/*if (atoi(gameinfo.wifiplayers)>8){ uncomment this when we actually have these images and it is needed
wifiplayersImgData= new GuiImageData(wifi12_png);}
if (atoi(gameinfo.wifiplayers)>12){
wifiplayersImgData= new GuiImageData(wifi16_png);}
if (atoi(gameinfo.wifiplayers)>16){
wifiplayersImgData= new GuiImageData(wifi32_png);}*/
wifiplayersImg = new GuiImage(wifiplayersImgData); wifiplayersImg = new GuiImage(wifiplayersImgData);
wifiplayersImg->SetWidescreen(CFG.widescreen); wifiplayersImg->SetWidescreen(CFG.widescreen);
wifiplayersImg->SetPosition(intputX , inputY); wifiplayersImg->SetPosition(intputX , inputY);
@ -439,7 +446,7 @@ showGameInfo(char *ID, u8 *headerID)
else if (strcmp(gameinfo.ratingvalueESRB,"AO")==0) else if (strcmp(gameinfo.ratingvalueESRB,"AO")==0)
ratingImgData = new GuiImageData(esrb_ao_png); ratingImgData = new GuiImageData(esrb_ao_png);
else {ratingImgData = new GuiImageData(norating_png);} else {ratingImgData = new GuiImageData(norating_png);}
} //there are 2 values here cause some countries are stupid and } //there are 2 values here cause some countries are stupid and
else if (strcmp(gameinfo.ratingtype,"PEGI")==0) {//can't use the same as everybody else else if (strcmp(gameinfo.ratingtype,"PEGI")==0) {//can't use the same as everybody else
if ((strcmp(gameinfo.ratingvaluePEGI,"3")==0)||(strcmp(gameinfo.ratingvaluePEGI,"4")==0)) if ((strcmp(gameinfo.ratingvaluePEGI,"3")==0)||(strcmp(gameinfo.ratingvaluePEGI,"4")==0))
ratingImgData = new GuiImageData(pegi_3_png); ratingImgData = new GuiImageData(pegi_3_png);
@ -453,11 +460,9 @@ showGameInfo(char *ID, u8 *headerID)
ratingImgData = new GuiImageData(pegi_18_png); ratingImgData = new GuiImageData(pegi_18_png);
else {ratingImgData = new GuiImageData(norating_png);} else {ratingImgData = new GuiImageData(norating_png);}
} }
else if (strcmp(gameinfo.ratingtype,"CERO")==0) { else if (strcmp(gameinfo.ratingtype,"CERO")==0) {
if (strcmp(gameinfo.ratingvalueCERO,"A")==0) if (strcmp(gameinfo.ratingvalueCERO,"A")==0)
ratingImgData = new GuiImageData(cero_a_png); ratingImgData = new GuiImageData(cero_a_png);
//ratingImgData = new GuiImageData(cero_b_png);
else if (strcmp(gameinfo.ratingvalueCERO,"B")==0) else if (strcmp(gameinfo.ratingvalueCERO,"B")==0)
ratingImgData = new GuiImageData(cero_b_png); ratingImgData = new GuiImageData(cero_b_png);
else if (strcmp(gameinfo.ratingvalueCERO,"C")==0) else if (strcmp(gameinfo.ratingvalueCERO,"C")==0)
@ -480,16 +485,17 @@ showGameInfo(char *ID, u8 *headerID)
} }
//////////debugging line //////////debugging line
/* snprintf(linebuf, sizeof(linebuf), "%s %s %s %s %i %s",gameinfo.ratingtype ,gameinfo.ratingvalueESRB,gameinfo.ratingvaluePEGI,gameinfo.ratingvalueCERO, ass,LANGUAGE.released); // snprintf(linebuf, sizeof(linebuf), "%s%s%s%s%i%i%i",gameinfo.accessories_required[1],gameinfo.accessories[1],gameinfo.accessories[2],gameinfo.accessories[3],gameinfo.accessoryCnt,
// guitar,microphone);
for (int i=0;strcmp(gameinfo.accessories_required[i+1],"") != 0;i++) /*for (int i=0;strcmp(gameinfo.accessories_required[i+1],"") != 0;i++)
{ {
snprintf(linebuf, sizeof(linebuf), "%s %s",linebuf, gameinfo.accessories_required[i+1]); snprintf(linebuf, sizeof(linebuf), "%s %s",linebuf, gameinfo.accessories_required[i+1]);
} }*/
debugTxt = new GuiText(linebuf, 18, (GXColor){0,0,0, 255}); //debugTxt = new GuiText(linebuf, 18, (GXColor){0,0,0, 255});
debugTxt->SetAlignment(ALIGN_LEFT, ALIGN_BOTTOM); debugTxt->SetPosition(0,0); // debugTxt->SetAlignment(ALIGN_LEFT, ALIGN_BOTTOM); debugTxt->SetPosition(0,0);
gameinfoWindow.Append(debugTxt);*/ // gameinfoWindow.Append(debugTxt);
if (strcmp(gameinfo.title,"") != 0) if (strcmp(gameinfo.title,"") != 0)
{snprintf(linebuf, sizeof(linebuf), "%s",gameinfo.title); {snprintf(linebuf, sizeof(linebuf), "%s",gameinfo.title);
@ -588,18 +594,20 @@ debugTxt = new GuiText(linebuf, 18, (GXColor){0,0,0, 255});
gameinfoWindow.Append(beta1Txt); gameinfoWindow.Append(beta1Txt);
// WiFi Shit commented out cause it has a code dump in it still // WiFi Shit commented out cause it has a code dump in it still
/*if (strcmp(gameinfo.wififeatures[0],"") != 0){ // wifiTxt = new GuiText * [gameinfo.wifiCnt];
snprintf(linebuf, sizeof(linebuf), "%s:",LANGUAGE.wififeatures); // int wifiY=0;
wifiTxt = new GuiText(linebuf, 16, (GXColor){0,0,0, 255}); /*for (int i=gameinfo.wifiCnt;strcmp(gameinfo.wififeatures[i],"") != 0;i--)
wifiTxt->SetAlignment(ALIGN_LEFT, ALIGN_TOP); wifiTxt->SetPosition(205,12+y); y+=(20 * newline);
gameinfoWindow.Append(wifiTxt);}
for (int i=1;strcmp(gameinfo.wififeatures[i],"") != 0;i++)
{ {
snprintf(linebuf, sizeof(linebuf), "%s",gameinfo.wififeatures[i]); snprintf(linebuf, sizeof(linebuf), "%s",gameinfo.wififeatures[i]);
wifiTxt[i] = new GuiText(linebuf, 16, (GXColor){0,0,0, 255}); wifiTxt[i] = new GuiText(linebuf, 16, (GXColor){0,0,0, 255});
wifiTxt[i]->SetAlignment(ALIGN_LEFT, ALIGN_TOP); wifiTxt[i]->SetPosition(210,12+y); y+=(20 * newline); wifiTxt[i]->SetAlignment(ALIGN_LEFT, ALIGN_TOP); wifiTxt[i]->SetPosition(215,200+wifiY); wifiY-=(20 * newline);
gameinfoWindow.Append(wifiTxt[i]);}*/ gameinfoWindow.Append(wifiTxt[i]);}*/
/*if (strcmp(gameinfo.wififeatures[1],"") != 0){
snprintf(linebuf, sizeof(linebuf), "%s:",LANGUAGE.wififeatures);
wifiTxt[0] = new GuiText(linebuf, 16, (GXColor){0,0,0, 255});
wifiTxt[0]->SetAlignment(ALIGN_LEFT, ALIGN_TOP); wifiTxt[0]->SetPosition(205,200+wifiY); //wifiY+=(20 * newline);
gameinfoWindow.Append(wifiTxt[0]);}*/
//synopsis //synopsis
if (strcmp(gameinfo.synopsis,"") != 0) if (strcmp(gameinfo.synopsis,"") != 0)
{snprintf(linebuf, sizeof(linebuf), "%s", gameinfo.synopsis); {snprintf(linebuf, sizeof(linebuf), "%s", gameinfo.synopsis);
@ -700,7 +708,7 @@ debugTxt = new GuiText(linebuf, 18, (GXColor){0,0,0, 255});
mainWindow->Remove(&gameinfoWindow); mainWindow->Remove(&gameinfoWindow);
mainWindow->SetState(STATE_DEFAULT); mainWindow->SetState(STATE_DEFAULT);
// use this to display variables on the window GuiText * debugTxt = NULL;
delete playersImgData; delete playersImgData;
delete playersImg; delete playersImg;
@ -750,6 +758,12 @@ debugTxt = new GuiText(linebuf, 18, (GXColor){0,0,0, 255});
delete genreTxt; delete genreTxt;
delete betaTxt; delete betaTxt;
delete beta1Txt; delete beta1Txt;
/*if (gameinfo.wifiCnt>0){
for(int i=0; i<gameinfo.wifiCnt; i++)
{
delete wifiTxt[i];
}
}*/
if (nodata==0)FreeXMLMemory(); if (nodata==0)FreeXMLMemory();
//void FreeXMLDeletePart(); //void FreeXMLDeletePart();
/* /*

View File

@ -464,7 +464,7 @@ bool LoadGameInfoFromXML(char* gameid, char* langtxt)
GetTextFromNode(nodeid, nodedata, "wi-fi", "players", NULL, MXML_NO_DESCEND, gameinfo.wifiplayers); GetTextFromNode(nodeid, nodedata, "wi-fi", "players", NULL, MXML_NO_DESCEND, gameinfo.wifiplayers);
nodefound = mxmlFindElement(nodeid, nodedata, "wi-fi", NULL, NULL, MXML_NO_DESCEND); nodefound = mxmlFindElement(nodeid, nodedata, "wi-fi", NULL, NULL, MXML_NO_DESCEND);
if (nodefound != NULL) { if (nodefound != NULL) {
int incr = 0; gameinfo.wifiCnt = 0;
nodeindextmp = mxmlIndexNew(nodefound,"feature", NULL); nodeindextmp = mxmlIndexNew(nodefound,"feature", NULL);
nodeidtmp = mxmlIndexReset(nodeindextmp); nodeidtmp = mxmlIndexReset(nodeindextmp);
@ -472,9 +472,9 @@ bool LoadGameInfoFromXML(char* gameid, char* langtxt)
{ {
nodeidtmp = mxmlIndexFind(nodeindextmp,"feature", NULL); nodeidtmp = mxmlIndexFind(nodeindextmp,"feature", NULL);
if (nodeidtmp != NULL) { if (nodeidtmp != NULL) {
++incr; ++gameinfo.wifiCnt;
GetTextFromNode(nodeidtmp, nodedata, "feature", NULL, NULL, MXML_DESCEND, gameinfo.wififeatures[incr]); GetTextFromNode(nodeidtmp, nodedata, "feature", NULL, NULL, MXML_DESCEND, gameinfo.wififeatures[gameinfo.wifiCnt]);
} }gameinfo.wififeatures[gameinfo.wifiCnt][0] = toupper(gameinfo.wififeatures[gameinfo.wifiCnt][0]);
} }
} }

View File

@ -43,6 +43,7 @@ struct gameXMLinfo
char iso_sha1[50]; char iso_sha1[50];
int accessoryCnt; int accessoryCnt;
int accessoryReqCnt; int accessoryReqCnt;
int wifiCnt;
} ; } ;