Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
Bonzomatic
Commits
62b85d9e
Commit
62b85d9e
authored
Feb 08, 2018
by
22459
Committed by
Gargaj
Feb 08, 2018
Browse files
main: take config path argument (#48)
parent
9c50b5fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
62b85d9e
...
...
@@ -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
"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment