]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/FGDeviceConfigurationMap.cxx
Interim windows build fix
[flightgear.git] / src / Input / FGDeviceConfigurationMap.cxx
index 73e9afd0587c04852dfa4cef0805b1dc819c09e3..7be95cb38953ef3b9cb5862d1e199bc2f00cd6ef 100644 (file)
@@ -96,6 +96,7 @@ bool FGDeviceConfigurationMap::hasConfiguration(const std::string& name) const
 
 void FGDeviceConfigurationMap::scan_dir(const SGPath & path)
 {
+  SG_LOG(SG_INPUT, SG_DEBUG, "Scanning " << path << " for input devices");
   if (!path.exists())
     return;
   
@@ -117,6 +118,8 @@ void FGDeviceConfigurationMap::scan_dir(const SGPath & path)
       } // of cached file stamp is valid
     } // of child is a file with '.xml' extension
   } // of directory children iteration
+  
+  txn.commit();
 }
 
 void FGDeviceConfigurationMap::readCachedData(const SGPath& path)
@@ -136,12 +139,12 @@ void FGDeviceConfigurationMap::readCachedData(const SGPath& path)
 
 void FGDeviceConfigurationMap::refreshCacheForFile(const SGPath& path)
 {
-  SG_LOG(SG_INPUT, SG_DEBUG, "Reading joystick file " << path.str());
+  SG_LOG(SG_INPUT, SG_DEBUG, "Reading device file " << path.str());
   SGPropertyNode_ptr n(new SGPropertyNode);
   try {
     readProperties(path.str(), n);
   } catch (sg_exception&) {
-    SG_LOG(SG_INPUT, SG_WARN, "parse failure reading:" << path);
+    SG_LOG(SG_INPUT, SG_ALERT, "parse failure reading:" << path);
     return;
   }