New recorder plugin + bugfix

This commit is contained in:
Ryzerth
2021-02-06 21:28:27 +01:00
parent a2d93915e8
commit a3f147a827
7 changed files with 778 additions and 293 deletions

View File

@@ -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;