I forgot to change one line. Also took the time to set a toggle for this other feature.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3317 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gigaherz 2010-06-26 21:32:02 +00:00
parent f1630170ed
commit 0e6c4377fe
1 changed files with 12 additions and 2 deletions

View File

@ -29,6 +29,16 @@
#define USE_HOST_REWRITE 1
#if USE_HOST_REWRITE
# ifdef WIN32
// disable this if you DON'T want "host:/usr/local/" paths
// to get rewritten into host:/
# define HOST_REWRITE_USR_LOCAL 1
# else
// unix/linux users might want to set it to 1
// if they DO want to keep demos from accessing their systems' /usr/local
# define HOST_REWRITE_USR_LOCAL 0
# endif
static char HostRoot[1024];
#endif
@ -134,11 +144,11 @@ public:
// partial "rooting",
// it will NOT avoid a path like "../../x" from escaping the pcsx2 folder!
#ifdef _WIN32
#if HOST_REWRITE_USR_LOCAL
const char *_local_root = "/usr/local/";
if(strncmp(path,_local_root,strlen(_local_root))==0)
{
strcpy(pathMod,"host/");
strcpy(pathMod,HostRoot);
strcat(pathMod,path+strlen(_local_root));
}
else