From 483db0d5f4fa5302069cb5acc337b7c3467ebbe7 Mon Sep 17 00:00:00 2001 From: luca Date: Tue, 25 Mar 2008 14:39:16 +0000 Subject: [PATCH] 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 --- include/applicat.cpp | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/include/applicat.cpp b/include/applicat.cpp index 82f7b7553..5d2937370 100755 --- a/include/applicat.cpp +++ b/include/applicat.cpp @@ -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;