Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/FelLib
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-01-14 13:36:32 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-01-14 13:36:32 +0300
commitd1a35aa2a3b6a0a038496e06f56daf356cfd9adc (patch)
treed94274d3b7948cf8b5d9f3dfe6931ba870605ef3 /FelLib
parent53f2e9bd15a113ff18134173b43eec3c07967fa3 (diff)
'Can't repack ramdisk' error on some systems should be gone now
Diffstat (limited to 'FelLib')
-rw-r--r--FelLib/Fel.cs2
-rw-r--r--FelLib/WinUSBNet/API/DeviceManagement.cs7
2 files changed, 8 insertions, 1 deletions
diff --git a/FelLib/Fel.cs b/FelLib/Fel.cs
index 63fbee54..549e71b8 100644
--- a/FelLib/Fel.cs
+++ b/FelLib/Fel.cs
@@ -370,7 +370,7 @@ namespace com.clusterrr.FelLib
}
#if DEBUG
- private static void DebugLog(string text)
+ public static void DebugLog(string text)
{
Console.WriteLine(text);
try
diff --git a/FelLib/WinUSBNet/API/DeviceManagement.cs b/FelLib/WinUSBNet/API/DeviceManagement.cs
index 2d593cce..e58a22b1 100644
--- a/FelLib/WinUSBNet/API/DeviceManagement.cs
+++ b/FelLib/WinUSBNet/API/DeviceManagement.cs
@@ -14,6 +14,7 @@ using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Text.RegularExpressions;
+using com.clusterrr.FelLib;
namespace MadWizard.WinUSBNet.API
{
@@ -241,12 +242,18 @@ namespace MadWizard.WinUSBNet.API
// Get the String containing the devicePathName.
try
{
+#if DEBUG
+ Fel.DebugLog("Trying to parse device: "+ pathName);
+#endif
DeviceDetails details = GetDeviceDetails(pathName, deviceInfoSet, da);
if (details.VID == vid && details.PID == pid)
deviceList.Add(details);
}
catch (APIException)
{
+#if DEBUG
+ Fel.DebugLog("Can't parse this device");
+#endif
continue;
}
}