*Forgot to remove my first though of updating WiiTDB
This commit is contained in:
parent
0e8101df81
commit
fe0982758a
1 changed files with 1 additions and 12 deletions
|
@ -2508,7 +2508,7 @@ int ProgressUpdateWindow() {
|
||||||
if (newrev > 0) {
|
if (newrev > 0) {
|
||||||
|
|
||||||
sprintf(msg, "Rev%i %s.", newrev, tr("available"));
|
sprintf(msg, "Rev%i %s.", newrev, tr("available"));
|
||||||
int choice = WindowPrompt(msg, tr("How do you want to update?"), tr("Update DOL"), tr("Update All"), tr("Update WiiTDB"), tr("Cancel"));
|
int choice = WindowPrompt(msg, tr("How do you want to update?"), tr("Update DOL"), tr("Update All"), tr("Cancel"));
|
||||||
mainWindow->SetState(STATE_DISABLED);
|
mainWindow->SetState(STATE_DISABLED);
|
||||||
promptWindow.SetState(STATE_DEFAULT);
|
promptWindow.SetState(STATE_DEFAULT);
|
||||||
mainWindow->ChangeFocus(&promptWindow);
|
mainWindow->ChangeFocus(&promptWindow);
|
||||||
|
@ -2601,17 +2601,6 @@ int ProgressUpdateWindow() {
|
||||||
updateLanguageFiles();
|
updateLanguageFiles();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if(choice == 3) {
|
|
||||||
char wiitdbpath[150];
|
|
||||||
msgTxt.SetTextf("%s", tr("Updating WiiTDB.zip"));
|
|
||||||
struct block file = downloadfile(XMLurl);
|
|
||||||
if (file.data != NULL) {
|
|
||||||
sprintf(wiitdbpath, "%swiitdb.zip", Settings.titlestxt_path);
|
|
||||||
FILE *pfile = fopen(wiitdbpath, "wb");
|
|
||||||
fwrite(file.data,1,file.size,pfile);
|
|
||||||
fclose(pfile);
|
|
||||||
free(file.data);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
failed = -1;
|
failed = -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue