mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-03-27 09:45:29 +01:00
Fixed recorder not creating default recording folder
This commit is contained in:
parent
f96c31deab
commit
3a81bb9725
@ -306,7 +306,13 @@ struct RecorderContext_t {
|
|||||||
};
|
};
|
||||||
|
|
||||||
MOD_EXPORT void _INIT_() {
|
MOD_EXPORT void _INIT_() {
|
||||||
|
// 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) {
|
MOD_EXPORT ModuleManager::Instance* _CREATE_INSTANCE_(std::string name) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user