[nostalgia/studio] Remove garbage last character in OC files
This commit is contained in:
parent
dae719f78a
commit
167e470091
Binary file not shown.
Binary file not shown.
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user