Fixed issues hopefully

This commit is contained in:
AlexandreRouma
2022-02-24 21:01:51 +01:00
parent 2779516378
commit 9bbc50ff3c
8 changed files with 11 additions and 11 deletions

View File

@ -46,7 +46,7 @@ public:
RecorderModule(std::string name) : folderSelect("%ROOT%/recordings") {
this->name = name;
root = core::args["root"];
root = (std::string)core::args["root"];
// Load config
config.acquire();
@ -518,7 +518,7 @@ struct RecorderContext_t {
MOD_EXPORT void _INIT_() {
// Create default recording directory
std::string root = core::args["root"];
std::string root = (std::string)core::args["root"];
if (!std::filesystem::exists(root + "/recordings")) {
spdlog::warn("Recordings directory does not exist, creating it");
if (!std::filesystem::create_directory(root + "/recordings")) {