From 9b36381b00bf47adf9ba205ad926b6c546a34e44 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 17 Dec 2022 14:00:39 -0600 Subject: [PATCH] [nostalgia/studio] Fix config dir creation not create duplicate dirs --- src/nostalgia/studio/lib/configio.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostalgia/studio/lib/configio.hpp b/src/nostalgia/studio/lib/configio.hpp index 8931f0bd..89a95877 100644 --- a/src/nostalgia/studio/lib/configio.hpp +++ b/src/nostalgia/studio/lib/configio.hpp @@ -73,7 +73,7 @@ ox::Error writeConfig(core::Context *ctx, const auto &name, T *data) noexcept { const auto configPath = ox::sfmt(ConfigDir, homeDir, ctx->appName).toStdString(); const auto path = ox::sfmt("{}.json", name).toStdString(); ox::PassThroughFS fs(configPath.c_str()); - if (auto err = fs.mkdir(configPath.c_str(), true)) { + if (auto err = fs.mkdir("/", true)) { oxErrf("Could not create config directory: {}\n", toStr(err)); return err; }