summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);*/
+ }
}