mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-27 13:44:15 +01:00
- added downloading and saving messages when downloading cheats.
This commit is contained in:
parent
982c761ab5
commit
24ce6136e4
BIN
out/boot.dol
BIN
out/boot.dol
Binary file not shown.
Before Width: | Height: | Size: 3.6 MiB After Width: | Height: | Size: 3.6 MiB |
@ -20,14 +20,16 @@ int CMenu::_downloadCheatFileAsync()
|
|||||||
{
|
{
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
|
m_thrdMessage = _t("dlmsg11", L"Downloading...");
|
||||||
|
m_thrdMessageAdded = true;
|
||||||
|
|
||||||
const char *id = CoverFlow.getId();
|
const char *id = CoverFlow.getId();
|
||||||
//char type = id[0] == 'S' ? 'R' : id[0];
|
|
||||||
|
|
||||||
struct download file = {};
|
struct download file = {};
|
||||||
downloadfile(fmt(GECKOURL, id), &file);
|
downloadfile(fmt(GECKOURL, id), &file);
|
||||||
if(file.size > 0 && file.data[0] != '<')
|
if(file.size > 0 && file.data[0] != '<')
|
||||||
{
|
{
|
||||||
|
m_thrdMessage = _t("dlmsg13", L"Saving...");
|
||||||
|
m_thrdMessageAdded = true;
|
||||||
update_pThread(1);// its downloaded
|
update_pThread(1);// its downloaded
|
||||||
fsop_WriteFile(fmt("%s/%s.txt", m_txtCheatDir.c_str(), id), file.data, file.size);
|
fsop_WriteFile(fmt("%s/%s.txt", m_txtCheatDir.c_str(), id), file.data, file.size);
|
||||||
free(file.data);
|
free(file.data);
|
||||||
|
Loading…
Reference in New Issue
Block a user