From ca904e43347e2004514c813aef975118fae1fdfc Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Wed, 18 Aug 2010 23:20:18 +0200 Subject: portable mode enabled in runtime --- src/common/portable.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/common/portable.c (limited to 'src/common/portable.c') diff --git a/src/common/portable.c b/src/common/portable.c new file mode 100644 index 00000000..dcc0fba1 --- /dev/null +++ b/src/common/portable.c @@ -0,0 +1,14 @@ +#include + +int +portable_mode () +{ + if ((_access( "portable-mode", 0 )) != -1) + { + return 1; + } + else + { + return 0; + } +} -- cgit 1.4.1