portable mode enabled in runtime

This commit is contained in:
berkeviktor@aol.com
2010-08-18 23:20:18 +02:00
parent bb33a3c4c4
commit ca904e4334
4 changed files with 72 additions and 37 deletions

14
src/common/portable.c Normal file
View File

@@ -0,0 +1,14 @@
#include <io.h>
int
portable_mode ()
{
if ((_access( "portable-mode", 0 )) != -1)
{
return 1;
}
else
{
return 0;
}
}

1
src/common/portable.h Normal file
View File

@@ -0,0 +1 @@
int portable_mode ();