Allow setting of application data path \(For config, save and script data\)

This commit is contained in:
Simon Robertshaw 2011-09-19 20:05:15 +01:00
parent fb1a522cca
commit 23dcec9d07

View File

@ -1716,6 +1716,20 @@ int main(int argc, char *argv[])
}
i++;
}
else if (!strncmp(argv[i], "ddir", 4) && i+1<argc)
{
/*char * temppath;
FILE *f;
temppath = malloc(strlen(argv[i+1])+19);
sprintf(temppath, "%s%s%s", argv[i+1], PATH_SEP, "powdertoydir.test")
f = fopen(temppath, "wb");
if(f){*/
chdir(argv[i+1]);
/* fclose(f);
remove(temppath);
}
free(temppath);*/
}
}