From e26a1c5f7a6bceb032e8a5f2bb77c34ad569a1a4 Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Fri, 14 Jan 2011 06:43:56 +0100 Subject: split dirent.h and more xtray support --- src/common/wdkutil.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/common/wdkutil.c (limited to 'src/common/wdkutil.c') 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 + +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; + } +} -- cgit 1.4.1