[studio/modlib] Fix project data directory in Project
This commit is contained in:
		| @@ -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)); | ||||
|   | ||||
| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user