Patch level : 2.1 path 22
Files correlati : ba0.exe Ricompilazione Demo : [ ] Commento : Corretta segnalazione moduli da aggiornare git-svn-id: svn://10.65.10.50/trunk@11959 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
dc10d91721
commit
8e35d530cb
@ -866,10 +866,13 @@ bool TMenu_application::test_programs()
|
|||||||
TConfig install("install.ini", "Main");
|
TConfig install("install.ini", "Main");
|
||||||
TFilename remote_name = install.get("DiskPath");
|
TFilename remote_name = install.get("DiskPath");
|
||||||
remote_name.add("install.ini");
|
remote_name.add("install.ini");
|
||||||
|
|
||||||
if (remote_name.exist())
|
if (remote_name.exist())
|
||||||
{
|
{
|
||||||
TProgind pi(3, TR("Controllo aggiornamento programmi"), FALSE, TRUE);
|
TProgind pi(3, TR("Controllo aggiornamento programmi"), FALSE, TRUE);
|
||||||
TConfig remote_install(remote_name, "Main");
|
TConfig remote_install(remote_name, "Main");
|
||||||
|
remote_install.write_protect();
|
||||||
|
|
||||||
TAssoc_array my_modules, his_modules;
|
TAssoc_array my_modules, his_modules;
|
||||||
pi.addstatus(1);
|
pi.addstatus(1);
|
||||||
install.for_each_paragraph(get_module_version, &my_modules);
|
install.for_each_paragraph(get_module_version, &my_modules);
|
||||||
@ -877,6 +880,10 @@ bool TMenu_application::test_programs()
|
|||||||
remote_install.for_each_paragraph(get_module_version, &his_modules);
|
remote_install.for_each_paragraph(get_module_version, &his_modules);
|
||||||
pi.addstatus(1);
|
pi.addstatus(1);
|
||||||
TScanner scan(AUT_FILE);
|
TScanner scan(AUT_FILE);
|
||||||
|
|
||||||
|
TString msg = TR("I seguenti moduli devono essere aggiornati prima dell'utilizzo:");
|
||||||
|
int update_needed = 0;
|
||||||
|
|
||||||
for (int module = 0; scan.line().not_empty(); module++)
|
for (int module = 0; scan.line().not_empty(); module++)
|
||||||
{
|
{
|
||||||
if (dongle().active(module))
|
if (dongle().active(module))
|
||||||
@ -892,12 +899,28 @@ bool TMenu_application::test_programs()
|
|||||||
if (!v1.blank() && compare_version(v1, p1, v2, p2) < 0)
|
if (!v1.blank() && compare_version(v1, p1, v2, p2) < 0)
|
||||||
{
|
{
|
||||||
dangerous.add(code);
|
dangerous.add(code);
|
||||||
const TString& name = scan.token().mid(3);
|
|
||||||
if (!more)
|
if (!more)
|
||||||
warning_box("ATTENZIONE: Il modulo %s\ndeve essere aggiornato prima di poterlo utilizzare.", (const char*)name);
|
{
|
||||||
|
const TString& name = scan.token().mid(3);
|
||||||
|
if (msg.len() < 200)
|
||||||
|
{
|
||||||
|
if (update_needed > 0)
|
||||||
|
msg << ',';
|
||||||
|
msg << name;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (msg.right(1) != ".")
|
||||||
|
msg << ",etc.";
|
||||||
|
}
|
||||||
|
update_needed++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (update_needed > 0)
|
||||||
|
warning_box(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (more)
|
if (more)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user