Allow setting of application data path \(For config, save and script data\)
This commit is contained in:
parent
fb1a522cca
commit
23dcec9d07
14
src/main.c
14
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);*/
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user