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 ++++++++++++++ src/common/portable.h | 1 + 2 files changed, 15 insertions(+) create mode 100644 src/common/portable.c create mode 100644 src/common/portable.h (limited to 'src/common') 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; + } +} diff --git a/src/common/portable.h b/src/common/portable.h new file mode 100644 index 00000000..bd40b24d --- /dev/null +++ b/src/common/portable.h @@ -0,0 +1 @@ +int portable_mode (); -- cgit 1.4.1