Fixed recorder not creating default recording folder

pull/75/head
Ryzerth 2021-02-17 02:35:00 +01:00
rodzic f96c31deab
commit 3a81bb9725
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -306,7 +306,13 @@ struct RecorderContext_t {
};
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) {