From ed5fc079eea9207c2c333cbcde288f28f2c13646 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 4 Dec 2023 00:45:21 -0600 Subject: [PATCH] [studio/modlib] Fix project data directory in Project --- src/studio/modlib/include/studio/project.hpp | 2 +- src/studio/modlib/src/project.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/studio/modlib/include/studio/project.hpp b/src/studio/modlib/include/studio/project.hpp index ec309202b..a0b302f7b 100644 --- a/src/studio/modlib/include/studio/project.hpp +++ b/src/studio/modlib/include/studio/project.hpp @@ -115,7 +115,7 @@ ox::Error Project::writeObj(ox::CRStringView path, T const&obj, ox::ClawFormat f oxReturnError(ox::buildTypeDef(&m_typeStore, &obj)); } // write out type store - const auto descPath = ox::sfmt("/.{}/type_descriptors", m_projectDataDir); + const auto descPath = ox::sfmt("/{}/type_descriptors", m_projectDataDir); oxReturnError(mkdir(descPath)); for (const auto &t : m_typeStore.typeList()) { oxRequireM(typeOut, ox::writeClaw(*t, ox::ClawFormat::Organic)); diff --git a/src/studio/modlib/src/project.cpp b/src/studio/modlib/src/project.cpp index ef72e69b7..e307f9a8d 100644 --- a/src/studio/modlib/src/project.cpp +++ b/src/studio/modlib/src/project.cpp @@ -25,7 +25,7 @@ Project::Project(keel::Context &ctx, ox::String path, ox::CRStringView projectDa m_ctx(ctx), m_path(std::move(path)), m_projectDataDir(projectDataDir), - m_typeStore(*m_ctx.rom, ox::sfmt("/.{}/type_descriptors", projectDataDir)), + m_typeStore(*m_ctx.rom, ox::sfmt("/{}/type_descriptors", projectDataDir)), m_fs(*m_ctx.rom) { oxTracef("studio", "Project: {}", m_path); generateTypes(m_typeStore);