New recorder plugin + bugfix
This commit is contained in:
@@ -8,6 +8,7 @@ namespace options {
|
||||
void loadDefaults() {
|
||||
#ifdef _WIN32
|
||||
opts.root = ".";
|
||||
opts.showConsole = false;
|
||||
#else
|
||||
std::string homedir = getenv("HOME");
|
||||
opts.root = homedir + "/.config/sdrpp";
|
||||
@@ -21,6 +22,9 @@ namespace options {
|
||||
if (i == argc - 1) { return false; }
|
||||
opts.root = argv[++i];
|
||||
}
|
||||
else if (!strcmp(arg, "-s") || !strcmp(arg, "--show-console")) {
|
||||
opts.showConsole = true;
|
||||
}
|
||||
else {
|
||||
spdlog::error("Invalid command line option: {0}", arg);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user