[nostalgia/studio] Remove garbage last character in OC files

This commit is contained in:
Gary Talent 2020-06-16 05:43:09 -05:00
parent dae719f78a
commit 167e470091
3 changed files with 3 additions and 1 deletions

View File

@ -102,8 +102,10 @@ void Project::writeObj(QString path, T *obj) const {
// write type descriptor // write type descriptor
const auto type = ox::buildTypeDef(obj); const auto type = ox::buildTypeDef(obj);
const auto typeOut = ox::writeClaw(type.value, ox::ClawFormat::Organic); auto typeOut = ox::writeClaw(type.value, ox::ClawFormat::Organic);
oxThrowError(typeOut); oxThrowError(typeOut);
// erase garbage last character
typeOut.value.pop_back();
// write to FS // write to FS
QString descPath = "/.nostalgia/type_descriptors/"; QString descPath = "/.nostalgia/type_descriptors/";
const auto typePath = descPath + type.value->typeName.c_str(); const auto typePath = descPath + type.value->typeName.c_str();