*** 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:
@@ -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;;)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user