Changing default registry name:

Unix: ~/.mozilla/registry
Win: <winnt dir>\mozregistry.dat

BTW, mac is already MozRegistry
This commit is contained in:
dp%netscape.com 1999-03-11 07:56:03 +00:00
parent aeb71939f8
commit f703def293

View File

@ -84,7 +84,7 @@ extern void vr_findGlobalRegName ()
pathlen = strlen(path); pathlen = strlen(path);
if ( pathlen > 0 ) { if ( pathlen > 0 ) {
XP_STRCPY( path+pathlen, "\\nsreg.dat" ); XP_STRCPY( path+pathlen, "\\mozregistry.dat" );
globalRegName = XP_STRDUP(path); globalRegName = XP_STRDUP(path);
} }
} }
@ -123,7 +123,7 @@ extern void vr_findGlobalRegName ()
pathlen = GetWindowsDirectory(path, PATHLEN); pathlen = GetWindowsDirectory(path, PATHLEN);
if ( pathlen > 0 ) { if ( pathlen > 0 ) {
XP_STRCPY( path+pathlen, "\\nsreg.dat" ); XP_STRCPY( path+pathlen, "\\mozregistry.dat" );
globalRegName = XP_STRDUP(path); globalRegName = XP_STRDUP(path);
} }
} }
@ -414,7 +414,7 @@ int main(int argc, char *argv[]);
#ifdef XP_UNIX #ifdef XP_UNIX
#define DEF_REG "/.netscape/registry" #define DEF_REG "/.mozilla/registry"
#ifdef STANDALONE_REGISTRY #ifdef STANDALONE_REGISTRY
extern XP_File vr_fileOpen (const char *name, const char * mode) extern XP_File vr_fileOpen (const char *name, const char * mode)