Commit 62b85d9e authored by 22459's avatar 22459 Committed by Gargaj
Browse files

main: take config path argument (#48)

parent 9c50b5fb
......@@ -71,14 +71,14 @@ static void changeToAppsCurrentDirectory()
}
#endif
int main()
int main(int argc, char *argv[])
{
#ifdef __APPLE__
changeToAppsCurrentDirectory();
#endif
jsonxx::Object options;
FILE * fConf = fopen("config.json","rb");
FILE * fConf = fopen( (argc > 1) ? argv[1] : "config.json","rb");
if (fConf)
{
printf("Config file found, parsing...\n");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment