UESaveFile: allow the class to be moved.
This commit is contained in:
parent
de07b760d0
commit
ce29d6174c
2 changed files with 8 additions and 8 deletions
|
@ -63,13 +63,13 @@ auto UESaveFile::saveToFile() -> bool {
|
|||
return false;
|
||||
}
|
||||
|
||||
if(!writer.writeStaticArray(staticArrayView(_magicBytes)) ||
|
||||
!writer.writeUnsignedInt(_saveVersion) ||
|
||||
!writer.writeUnsignedInt(_packageVersion) ||
|
||||
!writer.writeUnsignedShort(_engineVersion.major) ||
|
||||
!writer.writeUnsignedShort(_engineVersion.minor) ||
|
||||
!writer.writeUnsignedShort(_engineVersion.patch) ||
|
||||
!writer.writeUnsignedInt(_engineVersion.build) ||
|
||||
if(!writer.writeArray(arrayView(_magicBytes)) ||
|
||||
!writer.writeUnsignedInt(_saveVersion) ||
|
||||
!writer.writeUnsignedInt(_packageVersion) ||
|
||||
!writer.writeUnsignedShort(_engineVersion.major) ||
|
||||
!writer.writeUnsignedShort(_engineVersion.minor) ||
|
||||
!writer.writeUnsignedShort(_engineVersion.patch) ||
|
||||
!writer.writeUnsignedInt(_engineVersion.build) ||
|
||||
!writer.writeUEString(_engineVersion.buildId))
|
||||
{
|
||||
return false;
|
||||
|
|
|
@ -54,7 +54,7 @@ class UESaveFile {
|
|||
|
||||
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 _packageVersion = 0;
|
||||
|
|
Loading…
Reference in a new issue