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,7 +63,7 @@ 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) ||
|
||||||
|
|
|
@ -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