Update of /cvsroot/mahogany/M/src/classes
In directory sc8-pr-cvs1:/tmp/cvs-serv7299/src/classes
Modified Files:
MApplication.cpp
Log Message:
added --userdir cmd line option
Index: MApplication.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/MApplication.cpp,v
retrieving revision 1.289
retrieving revision 1.290
diff -b -u -2 -r1.289 -r1.290
--- MApplication.cpp 14 Jan 2004 00:06:13 -0000 1.289
+++ MApplication.cpp 16 Jan 2004 23:37:34 -0000 1.290
@@ -911,5 +911,13 @@
{
// first the local one: this one contains user-specific files
+ // ----------------------------------------------------------
+
+ // the cmd line value overrides everything
+ m_localDir = m_cmdLineOptions->userDir;
+
+ // if not given, use the one from the config file
m_localDir = READ_APPCONFIG_TEXT(MP_USERDIR);
+
+ // if still not given, try to find a good default one ourselves
if ( m_localDir.empty() )
{
@@ -970,4 +978,6 @@
// and now the global directory: this one is shared by all users
+ // -------------------------------------------------------------
+
m_globalDir = READ_APPCONFIG_TEXT(MP_GLOBALDIR);
if ( m_globalDir.empty() || !PathFinder::IsDir(m_globalDir) )
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates