From 0e6c4377fe5fb87ed0d3ac5e0b49dce5deaa9f66 Mon Sep 17 00:00:00 2001 From: gigaherz Date: Sat, 26 Jun 2010 21:32:02 +0000 Subject: [PATCH] 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 --- pcsx2/IopBios.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pcsx2/IopBios.cpp b/pcsx2/IopBios.cpp index 14c12cc525..81f9ef4132 100644 --- a/pcsx2/IopBios.cpp +++ b/pcsx2/IopBios.cpp @@ -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