From: Luca P. <lpa...@us...> - 2007-07-06 15:42:11
|
Update of /cvsroot/planeshift/planeshift/src/updater In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12065 Modified Files: updaterconfig.cpp Log Message: iDocumentNode* was not working properly Index: updaterconfig.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/updater/updaterconfig.cpp,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** updaterconfig.cpp 9 Feb 2007 21:50:32 -0000 1.44 --- updaterconfig.cpp 6 Jul 2007 15:42:11 -0000 1.45 *************** *** 65,68 **** --- 65,69 ---- arrayMirror = 0; + printf("Initializing..."); // Parse config and add missing xml elements if (!config || strcmp(config->GetValue(), "config") != 0) *************** *** 73,80 **** // Get whole_zip setting ! iDocumentNode* node = config->GetNode ("whole_zips"); ! if(node) ! wholeZips = node->GetContentsValueAsInt() ? true : false; ! else { printf("Warning, using default value for whole_zips (false)\n"); --- 74,82 ---- // Get whole_zip setting ! csRef<iDocumentNode> node = config->GetNode ("whole_zips"); ! if(node) { ! int test = node->GetContentsValueAsInt(); ! wholeZips = test ? true : false; ! } else { printf("Warning, using default value for whole_zips (false)\n"); |