New system for band plans

This commit is contained in:
Ryzerth
2020-12-23 00:11:12 +01:00
parent a08758ea54
commit a93681a980
8 changed files with 37 additions and 25 deletions

View File

@ -310,6 +310,14 @@ MOD_EXPORT void _INIT_() {
config.setPath(options::opts.root + "/recorder_config.json");
config.load(def);
config.enableAutoSave();
// Create default recording directory
if (!std::filesystem::exists(options::opts.root + "/recordings")) {
spdlog::warn("Recordings directory does not exist, creating it");
if (!std::filesystem::create_directory(options::opts.root + "/recordings")) {
spdlog::error("Could not create recordings directory");
}
}
}
MOD_EXPORT ModuleManager::Instance* _CREATE_INSTANCE_(std::string name) {