Patch level :10.0 cd

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :bottoni in italiano; scarica solo ini e zip;prima scaricava anche i txt delle patch...tempo perso


git-svn-id: svn://10.65.10.50/trunk@17941 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2008-12-18 09:53:31 +00:00
parent 6a3c5a4aee
commit e0da9f5ae6

View File

@ -773,12 +773,13 @@ bool CampoSetup::InternetUpdateModule(const wxString& strLocalPath, const wxStri
if (strHref.StartsWith(strModule))
{
const wxString strPatch = strHref.Mid(2, 4).Lower();
const wxString strExt = strHref.Right(4).Lower();
// 1) e' un pacco
//se e' un pacco devo sapere se e' piu' recente della installazione corrente (potrebbe essere un pacco nuovo..
//..ricompattato) oppure se e' piu' vecchio e non va toccato (e' ad esempio il pacco originale)
if (strPatch == "inst")
{
if (strHref.EndsWith("ini")) //operazioni sull'ini x sapere versione e patch
if (strExt == ".ini") //operazioni sull'ini x sapere versione e patch
{
HTTPGet(strTempDir+strHref, strWebPath+strHref);
CampoIniFile iniInst(strTempDir+strHref, strModule);
@ -797,9 +798,10 @@ bool CampoSetup::InternetUpdateModule(const wxString& strLocalPath, const wxStri
} //if(strHref.EndsWith("ini")...
} //if(strPatch == "inst")...
// 2) e' una patch
else //se invece e' una normale patch...
else //se invece e' una normale patch... else di if(strPatch=="inst"..
{
if (atoi(strPatch) > nLocPatch)
//controlla che sia più avanti del suo livello patch e che sia un file utile (servono solo .ini e .zip)
if (atoi(strPatch) > nLocPatch && (strExt==".ini" || strExt==".zip"))
HTTPGet(strTempDir+strHref, strWebPath+strHref);
}
} //if(strHref.StartsWith(strModule))...