Aggiunta #ifdef _DEMO_ nel metodo TDongle::burn
Aggiunto TDongle::_dirty = TRUE nel login a chiavi non programmate git-svn-id: svn://10.65.10.50/trunk@6097 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
41e97ccbd3
commit
1ff676dc9e
@ -133,7 +133,7 @@ bool TDongle::login(bool test_all_keys)
|
|||||||
if (data[0] == 0x3283) // chiave programmatori !!
|
if (data[0] == 0x3283) // chiave programmatori !!
|
||||||
{
|
{
|
||||||
#ifdef DBG
|
#ifdef DBG
|
||||||
_type = _aga_key; // eliminato perché giudicato troppo pericoloso
|
// _type = _aga_key; // eliminato perché giudicato troppo pericoloso
|
||||||
// se la DBG version arriva nelle mani di qualcuno
|
// se la DBG version arriva nelle mani di qualcuno
|
||||||
// ci inchiappetta tutti i programmi senza darci una lira!
|
// ci inchiappetta tutti i programmi senza darci una lira!
|
||||||
|
|
||||||
@ -200,6 +200,7 @@ bool TDongle::login(bool test_all_keys)
|
|||||||
_max_users = 1;
|
_max_users = 1;
|
||||||
_last_update = TDate(TODAY);
|
_last_update = TDate(TODAY);
|
||||||
_year_assist = _last_update.year();
|
_year_assist = _last_update.year();
|
||||||
|
_dirty = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -255,7 +256,10 @@ bool TDongle::write_octect(word reg, word k[4]) const
|
|||||||
|
|
||||||
bool TDongle::burn()
|
bool TDongle::burn()
|
||||||
{
|
{
|
||||||
|
#ifdef _DEMO_
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
#endif // _DEMO_
|
||||||
|
|
||||||
if (!dirty() || _serno == 0 || _serno == 0xFFFF)
|
if (!dirty() || _serno == 0 || _serno == 0xFFFF)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user