summary refs log tree commit diff stats
path: root/src/common/wdkutil.c
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-07-28 01:17:44 +0200
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-07-28 01:17:44 +0200
commit88a9f72d177076566899884e5a2230ae25a1911f (patch)
tree3b56ef20553dc88f1b0fa419a7bd7a36c874f7e9 /src/common/wdkutil.c
parent1fa63a74016444efc1cc68bca26eb011865348d8 (diff)
parent96caff1fbdf201164339e5e94fde04d8cb7968e8 (diff)
Merge with default
Diffstat (limited to 'src/common/wdkutil.c')
-rw-r--r--src/common/wdkutil.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/common/wdkutil.c b/src/common/wdkutil.c
new file mode 100644
index 00000000..5bf4f0c0
--- /dev/null
+++ b/src/common/wdkutil.c
@@ -0,0 +1,27 @@
+#include <io.h>
+
+int
+portable_mode ()
+{
+	if ((_access( "portable-mode", 0 )) != -1)
+	{
+		return 1;
+	}
+	else
+	{
+		return 0;
+	}
+}
+
+int
+xtray_mode ()
+{
+	if ((_access( "plugins/xtray.dll", 0 )) != -1)
+	{
+		return 1;
+	}
+	else
+	{
+		return 0;
+	}
+}