[commit] r2127 - trunk/GME/MgaUtil
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Fri Dec 14 17:59:19 CST 2012
Author: ksmyth
Date: Fri Dec 14 17:59:19 2012
New Revision: 2127
Log:
Default value for icon path for devs
Modified:
trunk/GME/MgaUtil/MgaRegistrar.cpp
Modified: trunk/GME/MgaUtil/MgaRegistrar.cpp
==============================================================================
--- trunk/GME/MgaUtil/MgaRegistrar.cpp Fri Dec 14 17:59:08 2012 (r2126)
+++ trunk/GME/MgaUtil/MgaRegistrar.cpp Fri Dec 14 17:59:19 2012 (r2127)
@@ -85,10 +85,16 @@
CRegKey mga;
res = mga.Open(HKEY_LOCAL_MACHINE, rootreg, KEY_READ);
if(res != ERROR_SUCCESS && res != ERROR_ACCESS_DENIED && res != ERROR_FILE_NOT_FOUND) ERRTHROW(res);
+ CString str2;
if(res == ERROR_SUCCESS) {
- CString str2 = QueryValue(mga, _T("IconPath"));
- str2.TrimLeft(_T(" ;,\t"));
- if(!str.IsEmpty() && !str2.IsEmpty()) str += _T(";");
+ str2 = QueryValue(mga, _T("IconPath"));
+ } else if (res == ERROR_FILE_NOT_FOUND) {
+ str2 = "$PARADIGMDIR\icons;$PROJECTDIR\icons";
+ }
+ str2.TrimLeft(_T(" ;,\t"));
+ if(!str.IsEmpty() && !str2.IsEmpty())
+ {
+ str += _T(";");
str += str2;
}
}
More information about the gme-commit
mailing list