Program won't start up without a config

This commit is contained in:
2018-02-11 18:57:42 +01:00
parent 9ac911b882
commit aa0ca9db87
3 changed files with 8 additions and 4 deletions

View File

@@ -22,7 +22,10 @@ int main(int argc, char *argv[]) {
int c;
//initialize libconfig
cfginit();
if (!cfginit()) {
printf("Failed to initialize csoundbox.cfg. Does it exist?\n");
return 0;
}
ao_initialize();
while ( (c = getopt_long(argc, argv, short_options, long_options, NULL)) != -1 ) {