mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 11:19:17 +01:00
This commit is contained in:
parent
3281d68a07
commit
612e099480
@ -104,6 +104,8 @@ int CheatMenu(const char * gameID)
|
||||
w.Append(&backBtn);
|
||||
w.Append(&createBtn);
|
||||
w.Append(&chtBrowser);
|
||||
mainWindow->SetState(STATE_DISABLED);
|
||||
mainWindow->ChangeFocus(&w);
|
||||
mainWindow->Append(&w);
|
||||
ResumeGui();
|
||||
|
||||
@ -160,6 +162,7 @@ int CheatMenu(const char * gameID)
|
||||
}
|
||||
}
|
||||
HaltGui();
|
||||
mainWindow->SetState(STATE_DEFAULT);
|
||||
mainWindow->Remove(&w);
|
||||
ResumeGui();
|
||||
|
||||
|
@ -2900,7 +2900,6 @@ int CodeDownload(const char *id)
|
||||
}
|
||||
|
||||
if(IsNetworkInit() && ret >= 0) {
|
||||
FILE * pfile;
|
||||
|
||||
char txtpath[150];
|
||||
snprintf(txtpath, sizeof(txtpath), "%s%s.txt", Settings.TxtCheatcodespath,id);
|
||||
@ -2920,6 +2919,7 @@ int CodeDownload(const char *id)
|
||||
}
|
||||
|
||||
if(file.data != NULL){
|
||||
FILE * pfile;
|
||||
pfile = fopen(txtpath, "wb");
|
||||
fwrite(file.data,1,file.size,pfile);
|
||||
fclose(pfile);
|
||||
@ -2937,7 +2937,6 @@ int CodeDownload(const char *id)
|
||||
ret =-1;
|
||||
}
|
||||
|
||||
|
||||
CloseConnection();
|
||||
}
|
||||
exit:
|
||||
|
Loading…
Reference in New Issue
Block a user