Build viewer/editor #13
1 changed files with 15 additions and 8 deletions
|
@ -29,6 +29,7 @@ auto BytePropertySerialiser::deserialise(const std::string& name, const std::str
|
||||||
{
|
{
|
||||||
auto prop = Containers::pointer<ByteProperty>();
|
auto prop = Containers::pointer<ByteProperty>();
|
||||||
|
|
||||||
|
if(value_length != UnsignedLong(-1)) {
|
||||||
if(!reader.readUEString(prop->enumType)) {
|
if(!reader.readUEString(prop->enumType)) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
@ -37,11 +38,14 @@ auto BytePropertySerialiser::deserialise(const std::string& name, const std::str
|
||||||
if(!reader.readChar(terminator) || terminator != '\0') {
|
if(!reader.readChar(terminator) || terminator != '\0') {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(!reader.readUEString(prop->enumValue)) {
|
if(!reader.readUEString(prop->enumValue)) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prop->valueLength = value_length;
|
||||||
|
|
||||||
//UnsignedInt count = 0;
|
//UnsignedInt count = 0;
|
||||||
//if(!reader.readUnsignedInt(count)) {
|
//if(!reader.readUnsignedInt(count)) {
|
||||||
// return nullptr;
|
// return nullptr;
|
||||||
|
@ -67,8 +71,11 @@ auto BytePropertySerialiser::serialise(UnrealPropertyBase::ptr& prop, UnsignedLo
|
||||||
//bytes_written += writer.writeValueToArray<UnsignedInt>(byte_prop->value.size());
|
//bytes_written += writer.writeValueToArray<UnsignedInt>(byte_prop->value.size());
|
||||||
//bytes_written += writer.writeDataToArray<char>(byte_prop->value);
|
//bytes_written += writer.writeDataToArray<char>(byte_prop->value);
|
||||||
|
|
||||||
|
if(byte_prop->valueLength != UnsignedLong(-1)) {
|
||||||
writer.writeUEStringToArray(byte_prop->enumType);
|
writer.writeUEStringToArray(byte_prop->enumType);
|
||||||
writer.writeValueToArray<char>('\0');
|
writer.writeValueToArray<char>('\0');
|
||||||
|
}
|
||||||
|
|
||||||
bytes_written += writer.writeUEStringToArray(byte_prop->enumValue);
|
bytes_written += writer.writeUEStringToArray(byte_prop->enumValue);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue