Add preference to disable writing the Catalog.xml.

This commit is contained in:
Steve Checkoway
2007-08-11 23:15:54 +00:00
parent 14dc770a74
commit 092a348637
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -41,8 +41,8 @@ const RString EDIT_COURSES_SUBDIR = "EditCourses/";
ThemeMetric<bool> SHOW_COIN_DATA( "Profile", "ShowCoinData" );
static Preference<bool> g_bProfileDataCompress( "ProfileDataCompress", false );
static Preference<bool> g_bCopyCatalogToProfiles( "CopyCatalogToProfiles", true );
extern Preference<bool> g_bWriteCatalog;
static ThemeMetric<RString> UNLOCK_AUTH_STRING( "Profile", "UnlockAuthString" );
#define GUID_SIZE_BYTES 8
#define MAX_EDITABLE_INI_SIZE_BYTES 2*1024 // 2KB
@@ -1642,7 +1642,7 @@ void Profile::SaveStatsWebPageToDir( RString sDir ) const
FileCopy( THEME->GetPathO("Profile",STATS_XSL), sDir+STATS_XSL );
FileCopy( THEME->GetPathO("Profile",COMMON_XSL), sDir+COMMON_XSL );
if( g_bCopyCatalogToProfiles )
if( g_bCopyCatalogToProfiles && g_bWriteCatalog )
{
FileCopy( CATALOG_XML_FILE, sDir+CATALOG_XML );
FileCopy( THEME->GetPathO("Profile",CATALOG_XSL), sDir+CATALOG_XSL );