load and save the 2548:1002 config for XBMC too. try to create the profile directory...
[deb_libcec.git] / src / LibCecTray / controller / CECController.cs
index f7a3a04fb37dec7777e6c2ce78cbc6d58247817c..13d75201cbdd644a7e63c9834ff87f7488da40fc 100644 (file)
@@ -490,6 +490,20 @@ namespace LibCECTray.controller
       get { return Lib.ToString(Config.ClientVersion); }
     }
 
+    /// <summary>
+    /// Get the usb vid:prod descriptor
+    /// </summary>
+    public string USBDescriptor
+    {
+      get
+      {
+        DateTime checkDate = new DateTime(1970, 1, 1, 0, 0, 0, 0);
+        checkDate = checkDate.AddSeconds(0x5045dbf5);
+
+        return string.Format("2548:100{0}", ((DateTime)Config.FirmwareBuildDate >= checkDate ? "2" : "1"));
+      }
+    }
+
     /// <summary>
     /// libCEC
     /// </summary>