diff --git a/src/UESaveFile/UESaveFile.cpp b/src/UESaveFile/UESaveFile.cpp
index 39728b7..a5a2781 100644
--- a/src/UESaveFile/UESaveFile.cpp
+++ b/src/UESaveFile/UESaveFile.cpp
@@ -14,8 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see .
-#include
#include
+#include
#include
#include "BinaryReader.h"
@@ -52,6 +52,10 @@ auto UESaveFile::reloadData() -> bool {
return valid();
}
+auto UESaveFile::saveType() -> Containers::StringView {
+ return _saveType;
+}
+
void UESaveFile::appendProperty(UnrealPropertyBase::ptr prop) {
auto none_prop = std::move(_properties.back());
_properties.back() = std::move(prop);
@@ -62,9 +66,6 @@ auto UESaveFile::props() -> Containers::ArrayView {
return _properties;
}
-#include
-#include
-
auto UESaveFile::saveToFile() -> bool {
BinaryWriter writer{_filepath + ".tmp"_s};
@@ -192,7 +193,7 @@ void UESaveFile::loadData() {
return;
}
- arrayReserve(_customFormatData, custom_format_data_size);
+ _customFormatData = Containers::Array{custom_format_data_size};
for(UnsignedInt i = 0; i < custom_format_data_size; i++) {
CustomFormatDataEntry entry;
diff --git a/src/UESaveFile/UESaveFile.h b/src/UESaveFile/UESaveFile.h
index e9eedc6..a281369 100644
--- a/src/UESaveFile/UESaveFile.h
+++ b/src/UESaveFile/UESaveFile.h
@@ -16,7 +16,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see .
-#include
+#include
#include
#include
#include
@@ -41,6 +41,8 @@ class UESaveFile {
auto reloadData() -> bool;
+ auto saveType() -> Containers::StringView;
+
template
std::enable_if_t::value, T*>
at(Containers::StringView name) {