*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1343 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-10-10 06:13:20 +00:00
parent 3c2da8973a
commit 35a96d83d3
5 changed files with 11 additions and 5 deletions
+7 -1
View File
@@ -14,8 +14,14 @@
string homedir = "";
vector<char *> packagedirs;
char *path(char *s)
char *path(char *s, bool copy)
{
if(copy)
{
static string tmp;
s_strcpy(tmp, s);
s = tmp;
}
for(char *t = s; (t = strpbrk(t, "/\\")); *t++ = PATHDIV);
for(char *prevdir = NULL, *curdir = s;;)
{