Build viewer/editor #13
2 changed files with 8 additions and 8 deletions
|
@ -63,13 +63,13 @@ auto UESaveFile::saveToFile() -> bool {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!writer.writeStaticArray(staticArrayView(_magicBytes)) ||
|
if(!writer.writeArray(arrayView(_magicBytes)) ||
|
||||||
!writer.writeUnsignedInt(_saveVersion) ||
|
!writer.writeUnsignedInt(_saveVersion) ||
|
||||||
!writer.writeUnsignedInt(_packageVersion) ||
|
!writer.writeUnsignedInt(_packageVersion) ||
|
||||||
!writer.writeUnsignedShort(_engineVersion.major) ||
|
!writer.writeUnsignedShort(_engineVersion.major) ||
|
||||||
!writer.writeUnsignedShort(_engineVersion.minor) ||
|
!writer.writeUnsignedShort(_engineVersion.minor) ||
|
||||||
!writer.writeUnsignedShort(_engineVersion.patch) ||
|
!writer.writeUnsignedShort(_engineVersion.patch) ||
|
||||||
!writer.writeUnsignedInt(_engineVersion.build) ||
|
!writer.writeUnsignedInt(_engineVersion.build) ||
|
||||||
!writer.writeUEString(_engineVersion.buildId))
|
!writer.writeUEString(_engineVersion.buildId))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -54,7 +54,7 @@ class UESaveFile {
|
||||||
|
|
||||||
std::string _filepath;
|
std::string _filepath;
|
||||||
|
|
||||||
const Containers::StaticArray<4, char> _magicBytes{'G', 'V', 'A', 'S'};
|
Containers::StaticArray<4, char> _magicBytes{'G', 'V', 'A', 'S'};
|
||||||
|
|
||||||
UnsignedInt _saveVersion = 0;
|
UnsignedInt _saveVersion = 0;
|
||||||
UnsignedInt _packageVersion = 0;
|
UnsignedInt _packageVersion = 0;
|
||||||
|
|
Loading…
Reference in a new issue