bool GTK_ARDOUR::use_vst = true;
bool GTK_ARDOUR::new_session = false;
char* GTK_ARDOUR::curvetest_file = 0;
-bool GTK_ARDOUR::try_hw_optimization = false;
+bool GTK_ARDOUR::try_hw_optimization = true;
using namespace GTK_ARDOUR;
#endif
<< _(" [session-name] Name of session to load\n")
<< _(" -C, --curvetest filename Curve algorithm debugger\n")
+ << _(" -g, --gtktheme Allow GTK to load a theme\n")
;
return 1;
GTK_ARDOUR::parse_opts (int argc, char *argv[])
{
- const char *optstring = "U:hbvVnoc:C:N:";
+ const char *optstring = "U:hbvVnoc:C:N:g";
const char *execname = strrchr (argv[0], '/');
if (execname == 0) {
{ "name", 1, 0, 'c' },
{ "novst", 0, 0, 'V' },
{ "new", 1, 0, 'N' },
- { "use-hw-optimizations", 0, 0, 'o' },
+ { "no-hw-optimizations", 0, 0, 'O' },
{ "curvetest", 1, 0, 'C' },
+ { "gtktheme", 0, 0, 'g' },
{ 0, 0, 0, 0 }
};
switch (c) {
case 0:
break;
-
+
case 'v':
just_version = true;
break;
session_name = optarg;
break;
- case 'o':
- try_hw_optimization = true;
+ case 'O':
+ try_hw_optimization = false;
break;
case 'V':
break;
default:
- break;
+ return print_help(execname);
}
}
if (optind < argc) {
+ if (new_session) {
+ cerr << "Illogical combination: you can either create a new session, or a load an existing session but not both!" << endl;
+ return print_help(execname);
+ }
session_name = argv[optind++];
}
+
return 0;
}