UESaveFile: allow the class to be moved.

This commit is contained in:
Guillaume Jacquemin 2021-09-22 18:22:48 +02:00
parent de07b760d0
commit ce29d6174c
2 changed files with 8 additions and 8 deletions

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;