mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-26 05:04:16 +01:00
*Forgot to remove my first though of updating WiiTDB
This commit is contained in:
parent
0e8101df81
commit
fe0982758a
@ -2508,7 +2508,7 @@ int ProgressUpdateWindow() {
|
||||
if (newrev > 0) {
|
||||
|
||||
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);
|
||||
promptWindow.SetState(STATE_DEFAULT);
|
||||
mainWindow->ChangeFocus(&promptWindow);
|
||||
@ -2601,17 +2601,6 @@ int ProgressUpdateWindow() {
|
||||
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 {
|
||||
failed = -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user