summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorcracker64 <cracker642@gmail.com>2011-09-19 21:05:05 (GMT)
committer cracker64 <cracker642@gmail.com>2011-09-19 21:05:05 (GMT)
commitb926341d80c07f8fcb7856237e933dd624a47638 (patch)
treec073ca96b89e74d5ef55dcdccb15a019099d67ef /src/main.c
parentf0379c5418fd97632004027aa311c4f9b3fb9ab0 (diff)
parentf535f8dce4e8c86a361003c55b03f88c73b85ed1 (diff)
downloadpowder-b926341d80c07f8fcb7856237e933dd624a47638.zip
powder-b926341d80c07f8fcb7856237e933dd624a47638.tar.gz
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 3e530db..d756fae 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);*/
+ }
}