diff host/tools/ecostest/common/eCosTestPlatform.cpp @ 613:f83ca6359915

* configtool/standalone/wxwin/admindlg.cpp, configtool/standalone/wxwin/configtooldoc.cpp, configtool/standalone/wxwin/configtool.cpp, configtool/standalone/wxwin/mainwin.cpp, configtool/standalone/wxwin/appsettings.cpp: Look for all persistent application settings under "HKEY_CURRENT_USER\Software\eCos Configuration Tool\" for consistency. * configtool/standalone/wxwin/appsettings.cpp: Board 'reset type' is determined at run-time and no longer persistent. * configtool/standalone/wxwin/configtooldoc.cpp: Determine board reset type by looking for "cyg_test_is_simulator=1" rather than just "cyg_test_is_simulator" since "cyg_test_simulator=0" is also possible. * configtool/standalone/wxwin/mainwin.cpp: Supress obsolete menu items. * configtool/standalone/wxwin/platformeditordialog.cpp: Replace LF (rather than CRLF) with ';' when storing GDB commands. * ecostest/common/eCosTestPlatform.cpp: Look for all persistent application settings under "HKEY_CURRENT_USER\Software\eCos Configuration Tool\" for consistency.
author jld
date Thu, 13 Feb 2003 16:23:38 +0000
parents 36f23a513952
children ed7f4b86af78
line wrap: on
line diff
--- a/host/tools/ecostest/common/eCosTestPlatform.cpp
+++ b/host/tools/ecostest/common/eCosTestPlatform.cpp
@@ -2,6 +2,7 @@
 //                                                                          
 // ----------------------------------------------------------------------------
 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
+// Copyright (C) 2003 John Dallaway
 //
 // This program is part of the eCos host tools.
 //
@@ -152,12 +153,12 @@ bool CeCosTestPlatform::Load()
 #ifdef _WIN32
 
   // get target info from the registry
-  String strPlatformsKey = _T("Software\\Red Hat\\eCos\\");
-  strPlatformsKey += GetGreatestSubkey (_T("Software\\Red Hat\\eCos"));
-  strPlatformsKey += _T("\\Platforms");
+  String strPlatformsKey = _T("Software\\eCos Configuration Tool\\Platforms");
+//  strPlatformsKey += GetGreatestSubkey (_T("Software\\eCos"));
+//  strPlatformsKey += _T("\\Platforms");
 
   HKEY hKey;
-  bool rc=ERROR_SUCCESS==RegOpenKeyEx (HKEY_LOCAL_MACHINE, strPlatformsKey, 0L, KEY_READ, &hKey);
+  bool rc=ERROR_SUCCESS==RegOpenKeyEx (HKEY_CURRENT_USER, strPlatformsKey, 0L, KEY_READ, &hKey);
   DWORD dwSubKeys=0;
   if(rc){
     // Found the given key.
@@ -236,11 +237,11 @@ bool CeCosTestPlatform::Save()
   const String strDir(CeCosTestUtils::HomeFile(_T(".eCosPlatforms")));
 #ifdef _WIN32
   if(!CeCosTestUtils::Exists(strDir)){
-    String strPlatformsKey = _T("Software\\Red Hat\\eCos\\");
-    strPlatformsKey += GetGreatestSubkey (_T("Software\\Red Hat\\eCos"));
-    strPlatformsKey += _T("\\Platforms");
+    String strPlatformsKey = _T("Software\\eCos Configuration Tool\\Platforms");
+//    strPlatformsKey += GetGreatestSubkey (_T("Software\\eCos"));
+//    strPlatformsKey += _T("\\Platforms");
 
-    return SaveToRegistry(HKEY_LOCAL_MACHINE,strPlatformsKey);
+    return SaveToRegistry(HKEY_CURRENT_USER,strPlatformsKey);
   }
 #endif
   return SaveToDir(strDir);