- added no cheats available message instead of download failed, if no cheat's file is available on geckocodes.org.

This commit is contained in:
Fledge68 2019-10-26 19:08:21 -05:00
parent 8ba563cfd6
commit 26ad30f907
3 changed files with 8 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 MiB

After

Width:  |  Height:  |  Size: 3.6 MiB

View File

@ -33,8 +33,11 @@ int CMenu::_downloadCheatFileAsync()
free(file.data); free(file.data);
return 0; return 0;
} }
if(file.size > 0) if(file.size > 0)// received a 301/302 redirect instead of a 404?
free(file.data);// received a 301/302 redirect instead of a 404? {
free(file.data);
return -4;// the file doesn't exist on the server
}
return -3;// download failed return -3;// download failed
} }
@ -164,6 +167,8 @@ void CMenu::_CheatSettings()
m_btnMgr.setText(m_wbfsLblDialog, _t("dlmsg2", L"Network initialization failed!")); m_btnMgr.setText(m_wbfsLblDialog, _t("dlmsg2", L"Network initialization failed!"));
else if(ret == -3) else if(ret == -3)
m_btnMgr.setText(m_wbfsLblDialog, _t("dlmsg12", L"Download failed!")); m_btnMgr.setText(m_wbfsLblDialog, _t("dlmsg12", L"Download failed!"));
else if(ret == -4)
m_btnMgr.setText(m_wbfsLblDialog, _t("dlmsg35", L"No cheats available."));
else else
m_btnMgr.setText(m_wbfsLblDialog, _t("dlmsg14", L"Done.")); m_btnMgr.setText(m_wbfsLblDialog, _t("dlmsg14", L"Done."));
dl_finished = true; dl_finished = true;

View File

@ -300,6 +300,7 @@ dlmsg31=converting cover %i of %i
dlmsg32=Downloading banner %i/%i dlmsg32=Downloading banner %i/%i
dlmsg33=No banners missing. dlmsg33=No banners missing.
dlmsg34=Banner URL not set properly! dlmsg34=Banner URL not set properly!
dlmsg35=No cheats available.
dlmsg4=Saving %s dlmsg4=Saving %s
dlmsg5=%i/%i files downloaded dlmsg5=%i/%i files downloaded
dlmsg6=Canceling... dlmsg6=Canceling...