/[svn]/linuxsampler/trunk/src/linuxsampler.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/linuxsampler.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3353 by schoenebeck, Mon Jan 16 15:01:21 2017 UTC revision 3354 by schoenebeck, Thu Oct 12 14:44:14 2017 UTC
# Line 432  void parse_options(int argc, char **argv Line 432  void parse_options(int argc, char **argv
432  #if HAVE_SQLITE3  #if HAVE_SQLITE3
433                      try {                      try {
434                          std::cout << "Creating instruments database..." << std::endl;                          std::cout << "Creating instruments database..." << std::endl;
435                          if (optarg)                          if (optarg) // with glibc this only fires with form --create-instruments-db=bla (see below)
436                              InstrumentsDb::GetInstrumentsDb()->CreateInstrumentsDb(String(optarg));                              InstrumentsDb::GetInstrumentsDb()->CreateInstrumentsDb(String(optarg));
437                            else if (argv[optind] && argv[optind][0] != '-') // workaround: glibc actually expects form --foo=value for all optional arguments ...
438                                InstrumentsDb::GetInstrumentsDb()->CreateInstrumentsDb(String(argv[optind++]));
439                          else                          else
440                              InstrumentsDb::GetInstrumentsDb()->CreateInstrumentsDb(); // use default instruments db location                              InstrumentsDb::GetInstrumentsDb()->CreateInstrumentsDb(); // use default instruments db location
441                          std::cout << "Done" << std::endl;                          std::cout << "Done" << std::endl;

Legend:
Removed from v.3353  
changed lines
  Added in v.3354

  ViewVC Help
Powered by ViewVC