Build viewer/editor #13

Manually merged
williamjcm merged 128 commits from mass-viewer into master 2022-03-02 14:50:10 +01:00
2 changed files with 8 additions and 8 deletions
Showing only changes of commit ce29d6174c - Show all commits

View file

@ -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;

View file

@ -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;