Patch level :4.0 / 10.0

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :occhio all'anno di assistenza!


git-svn-id: svn://10.65.10.50/trunk@16366 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2008-03-25 14:39:16 +00:00
parent 4efda970e7
commit 483db0d5f4

View File

@ -69,9 +69,15 @@ TInfo_mask::TInfo_mask()
{
const word ser_no = dongle().number();
int year = 2007, release = 3, tag = 1, patch = 1;
TString16 versione = "2007.03";
TString16 strpatch = "01.0001";
//pezzo commentato per la 10.0!! NON eliminare!!!
/*int year = 2008, release = 10, tag = 0, patch = 1;
TString16 versione = "2008.10";
TString16 strpatch = "00.0001";*/
int year = 2008, release = 4, tag = 0, patch = 1;
TString16 versione = "2008.04";
TString16 strpatch = "00.0001";
if (main_app().get_version_info(year, release, tag, patch))
{
versione.format("%d.%02d", year, release);
@ -665,7 +671,10 @@ void TApplication::run(
bool TApplication::get_version_info(int& year, int& release, int& tag, int& patch)
{
const char* const VERSIONANDPATCH = "Don't cry for me Argentina.2007.03.01.0001.2012";
//Commentato per la 10.0! Non cancellare!!
//const char* const VERSIONANDPATCH = "Don't cry for me Argentina.2008.10.00.0000.2018";
const char* const VERSIONANDPATCH = "Don't cry for me Argentina.2008.04.00.0001.2013";
TToken_string vep(VERSIONANDPATCH, '.');
year = vep.get_int(1);
@ -674,7 +683,10 @@ bool TApplication::get_version_info(int& year, int& release, int& tag, int& patc
patch = vep.get_int();
int checksum = vep.get_int();
bool valid = year >= 2007 && release > 0 && tag >= 0 && patch >= 0 &&
//Commentato per la 10.0! Non cancellare!!
//bool valid = year >= 2008 && release > 0 && tag >= 0 && patch >= 0 &&
bool valid = year >= 2008 && release > 0 && tag >= 0 && patch >= 0 &&
checksum == (year + release + tag + patch);
return valid;