Compare commits
No commits in common. "f68dee939e198386990c858fe6c6a79d676b2d92" and "3a3b5bfdff3d84fb307b6f92ed77afe79dbfabb2" have entirely different histories.
f68dee939e
...
3a3b5bfdff
145 changed files with 519 additions and 508 deletions
|
@ -1,5 +1,5 @@
|
|||
# MassBuilderSaveTool
|
||||
# Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
# Copyright (C) 2021-2022 Guillaume Jacquemin
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
namespace BinaryIo {
|
||||
|
||||
class Reader;
|
||||
class Writer;
|
||||
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
# MassBuilderSaveTool
|
||||
# Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
# Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
@ -36,97 +36,8 @@ set_directory_properties(PROPERTIES CORRADE_USE_PEDANTIC_FLAGS ON)
|
|||
|
||||
corrade_add_resource(Assets assets.conf)
|
||||
|
||||
set(Logger_SOURCES
|
||||
Logger/Logger.h
|
||||
Logger/Logger.cpp
|
||||
Logger/EntryType.h
|
||||
Logger/MagnumLogBuffer.h
|
||||
Logger/MagnumLogBuffer.cpp
|
||||
)
|
||||
|
||||
set(BinaryIo_SOURCES
|
||||
BinaryIo/BinaryIo.h
|
||||
BinaryIo/Reader.h
|
||||
BinaryIo/Reader.cpp
|
||||
BinaryIo/Writer.h
|
||||
BinaryIo/Writer.cpp
|
||||
)
|
||||
|
||||
set(Gvas_SOURCES
|
||||
Gvas/Serialisers/Serialisers.h
|
||||
Gvas/Serialisers/AbstractUnrealCollectionProperty.h
|
||||
Gvas/Serialisers/AbstractUnrealProperty.h
|
||||
Gvas/Serialisers/AbstractUnrealStruct.h
|
||||
Gvas/Serialisers/ArrayProperty.h
|
||||
Gvas/Serialisers/ArrayProperty.cpp
|
||||
Gvas/Serialisers/BoolProperty.h
|
||||
Gvas/Serialisers/BoolProperty.cpp
|
||||
Gvas/Serialisers/ByteProperty.h
|
||||
Gvas/Serialisers/ByteProperty.cpp
|
||||
Gvas/Serialisers/ColourProperty.h
|
||||
Gvas/Serialisers/ColourProperty.cpp
|
||||
Gvas/Serialisers/DateTimeProperty.h
|
||||
Gvas/Serialisers/DateTimeProperty.cpp
|
||||
Gvas/Serialisers/EnumProperty.h
|
||||
Gvas/Serialisers/EnumProperty.cpp
|
||||
Gvas/Serialisers/FloatProperty.h
|
||||
Gvas/Serialisers/FloatProperty.cpp
|
||||
Gvas/Serialisers/GuidProperty.h
|
||||
Gvas/Serialisers/GuidProperty.cpp
|
||||
Gvas/Serialisers/IntProperty.h
|
||||
Gvas/Serialisers/IntProperty.cpp
|
||||
Gvas/Serialisers/MapProperty.h
|
||||
Gvas/Serialisers/MapProperty.cpp
|
||||
Gvas/Serialisers/ResourceProperty.h
|
||||
Gvas/Serialisers/ResourceProperty.cpp
|
||||
Gvas/Serialisers/RotatorProperty.h
|
||||
Gvas/Serialisers/RotatorProperty.cpp
|
||||
Gvas/Serialisers/StringProperty.h
|
||||
Gvas/Serialisers/StringProperty.cpp
|
||||
Gvas/Serialisers/SetProperty.h
|
||||
Gvas/Serialisers/SetProperty.cpp
|
||||
Gvas/Serialisers/Struct.h
|
||||
Gvas/Serialisers/Struct.cpp
|
||||
Gvas/Serialisers/TextProperty.h
|
||||
Gvas/Serialisers/TextProperty.cpp
|
||||
Gvas/Serialisers/UnrealProperty.h
|
||||
Gvas/Serialisers/VectorProperty.h
|
||||
Gvas/Serialisers/VectorProperty.cpp
|
||||
Gvas/Serialisers/Vector2DProperty.h
|
||||
Gvas/Serialisers/Vector2DProperty.cpp
|
||||
|
||||
Gvas/Types/Types.h
|
||||
Gvas/Types/ArrayProperty.h
|
||||
Gvas/Types/BoolProperty.h
|
||||
Gvas/Types/ByteProperty.h
|
||||
Gvas/Types/ColourStructProperty.h
|
||||
Gvas/Types/DateTimeStructProperty.h
|
||||
Gvas/Types/EnumProperty.h
|
||||
Gvas/Types/FloatProperty.h
|
||||
Gvas/Types/GenericStructProperty.h
|
||||
Gvas/Types/GuidStructProperty.h
|
||||
Gvas/Types/IntProperty.h
|
||||
Gvas/Types/MapProperty.h
|
||||
Gvas/Types/NoneProperty.h
|
||||
Gvas/Types/RotatorStructProperty.h
|
||||
Gvas/Types/SetProperty.h
|
||||
Gvas/Types/StringProperty.h
|
||||
Gvas/Types/StructProperty.h
|
||||
Gvas/Types/ResourceItemValue.h
|
||||
Gvas/Types/TextProperty.h
|
||||
Gvas/Types/UnrealProperty.h
|
||||
Gvas/Types/UnrealPropertyBase.h
|
||||
Gvas/Types/Vector2DStructProperty.h
|
||||
Gvas/Types/VectorStructProperty.h
|
||||
|
||||
Gvas/Gvas.h
|
||||
Gvas/Debug.h
|
||||
Gvas/Debug.cpp
|
||||
Gvas/File.h
|
||||
Gvas/File.cpp
|
||||
Gvas/PropertySerialiser.h
|
||||
Gvas/PropertySerialiser.cpp
|
||||
)
|
||||
add_subdirectory(Logger EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(Gvas EXCLUDE_FROM_ALL)
|
||||
|
||||
if(CORRADE_TARGET_WINDOWS)
|
||||
set(SAVETOOL_RC_FILE resource.rc)
|
||||
|
@ -196,9 +107,6 @@ add_executable(MassBuilderSaveTool
|
|||
Version/Version.cpp
|
||||
FontAwesome/IconsFontAwesome5.h
|
||||
FontAwesome/IconsFontAwesome5Brands.h
|
||||
${Logger_SOURCES}
|
||||
${BinaryIo_SOURCES}
|
||||
${Gvas_SOURCES}
|
||||
${SAVETOOL_RC_FILE}
|
||||
${Assets}
|
||||
)
|
||||
|
@ -207,6 +115,10 @@ if(CORRADE_TARGET_WINDOWS)
|
|||
set_target_properties(${PROJECT_NAME} PROPERTIES WIN32_EXECUTABLE $<CONFIG:Release>)
|
||||
endif()
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||
target_compile_definitions(Logger PRIVATE SAVETOOL_DEBUG_BUILD)
|
||||
target_compile_definitions(MassBuilderSaveTool PRIVATE SAVETOOL_DEBUG_BUILD)
|
||||
endif()
|
||||
target_compile_definitions(MassBuilderSaveTool PRIVATE
|
||||
SAVETOOL_VERSION_STRING="${SAVETOOL_PROJECT_VERSION}"
|
||||
SAVETOOL_VERSION_MAJOR=1
|
||||
|
@ -234,6 +146,8 @@ target_link_libraries(MassBuilderSaveTool PRIVATE
|
|||
Magnum::GL
|
||||
Magnum::Sdl2Application
|
||||
MagnumIntegration::ImGui
|
||||
Logger
|
||||
Gvas
|
||||
CURL::libcurl_static
|
||||
)
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -21,11 +21,11 @@
|
|||
|
||||
#include "../Logger/Logger.h"
|
||||
|
||||
#include "Reader.h"
|
||||
#include "BinaryReader.h"
|
||||
|
||||
namespace BinaryIo {
|
||||
namespace Gvas {
|
||||
|
||||
Reader::Reader(Containers::StringView filename) {
|
||||
BinaryReader::BinaryReader(Containers::StringView filename) {
|
||||
_file = std::fopen(filename.data(), "rb");
|
||||
|
||||
if(!_file) {
|
||||
|
@ -33,93 +33,93 @@ Reader::Reader(Containers::StringView filename) {
|
|||
}
|
||||
}
|
||||
|
||||
Reader::~Reader() {
|
||||
BinaryReader::~BinaryReader() {
|
||||
closeFile();
|
||||
}
|
||||
|
||||
bool
|
||||
Reader::open() {
|
||||
BinaryReader::open() {
|
||||
return _file;
|
||||
}
|
||||
|
||||
bool
|
||||
Reader::eof() {
|
||||
BinaryReader::eof() {
|
||||
return std::feof(_file) != 0;
|
||||
}
|
||||
|
||||
std::int64_t
|
||||
Reader::position() {
|
||||
BinaryReader::position() {
|
||||
return _ftelli64(_file);
|
||||
}
|
||||
|
||||
bool
|
||||
Reader::seek(std::int64_t position) {
|
||||
BinaryReader::seek(std::int64_t position) {
|
||||
return _fseeki64(_file, position, SEEK_SET) == 0;
|
||||
}
|
||||
|
||||
void
|
||||
Reader::closeFile() {
|
||||
BinaryReader::closeFile() {
|
||||
std::fclose(_file);
|
||||
_file = nullptr;
|
||||
}
|
||||
|
||||
bool
|
||||
Reader::readChar(char& value) {
|
||||
BinaryReader::readChar(char& value) {
|
||||
return std::fread(&value, sizeof(char), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Reader::readInt8(std::int8_t& value) {
|
||||
BinaryReader::readInt8(std::int8_t& value) {
|
||||
return std::fread(&value, sizeof(std::int8_t), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Reader::readUint8(std::uint8_t& value) {
|
||||
BinaryReader::readUint8(std::uint8_t& value) {
|
||||
return std::fread(&value, sizeof(std::uint8_t), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Reader::readInt16(std::int16_t& value) {
|
||||
BinaryReader::readInt16(std::int16_t& value) {
|
||||
return std::fread(&value, sizeof(std::int16_t), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Reader::readUint16(std::uint16_t& value) {
|
||||
BinaryReader::readUint16(std::uint16_t& value) {
|
||||
return std::fread(&value, sizeof(std::uint16_t), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Reader::readInt32(std::int32_t& value) {
|
||||
BinaryReader::readInt32(std::int32_t& value) {
|
||||
return std::fread(&value, sizeof(std::int32_t), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Reader::readUint32(std::uint32_t& value) {
|
||||
BinaryReader::readUint32(std::uint32_t& value) {
|
||||
return std::fread(&value, sizeof(std::uint32_t), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Reader::readInt64(std::int64_t& value) {
|
||||
BinaryReader::readInt64(std::int64_t& value) {
|
||||
return std::fread(&value, sizeof(std::int64_t), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Reader::readUint64(std::uint64_t& value) {
|
||||
BinaryReader::readUint64(std::uint64_t& value) {
|
||||
return std::fread(&value, sizeof(std::uint64_t), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Reader::readFloat(float& value) {
|
||||
BinaryReader::readFloat(float& value) {
|
||||
return std::fread(&value, sizeof(float), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Reader::readDouble(double& value) {
|
||||
BinaryReader::readDouble(double& value) {
|
||||
return std::fread(&value, sizeof(double), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Reader::readArray(Containers::Array<char>& array, std::size_t count) {
|
||||
BinaryReader::readArray(Containers::Array<char>& array, std::size_t count) {
|
||||
if(array.size() < count) {
|
||||
array = Containers::Array<char>{ValueInit, count};
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ Reader::readArray(Containers::Array<char>& array, std::size_t count) {
|
|||
}
|
||||
|
||||
bool
|
||||
Reader::readUEString(Containers::String& str) {
|
||||
BinaryReader::readUEString(Containers::String& str) {
|
||||
std::uint32_t length = 0;
|
||||
if(!readUint32(length) || length == 0) {
|
||||
return false;
|
||||
|
@ -140,7 +140,7 @@ Reader::readUEString(Containers::String& str) {
|
|||
}
|
||||
|
||||
std::int32_t
|
||||
Reader::peekChar() {
|
||||
BinaryReader::peekChar() {
|
||||
std::int32_t c;
|
||||
c = std::fgetc(_file);
|
||||
std::ungetc(c, _file);
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -25,18 +25,12 @@
|
|||
|
||||
using namespace Corrade;
|
||||
|
||||
namespace BinaryIo {
|
||||
namespace Gvas {
|
||||
|
||||
class Reader {
|
||||
class BinaryReader {
|
||||
public:
|
||||
explicit Reader(Containers::StringView filename);
|
||||
~Reader();
|
||||
|
||||
Reader(const Reader& other) = delete;
|
||||
Reader& operator=(const Reader& other) = delete;
|
||||
|
||||
Reader(Reader&& other) = default;
|
||||
Reader& operator=(Reader&& other) = default;
|
||||
explicit BinaryReader(Containers::StringView filename);
|
||||
~BinaryReader();
|
||||
|
||||
bool open();
|
||||
bool eof();
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -18,52 +18,52 @@
|
|||
|
||||
#include "../Logger/Logger.h"
|
||||
|
||||
#include "Writer.h"
|
||||
#include "BinaryWriter.h"
|
||||
|
||||
using namespace Containers::Literals;
|
||||
|
||||
namespace BinaryIo {
|
||||
namespace Gvas {
|
||||
|
||||
Writer::Writer(Containers::StringView filename) {
|
||||
BinaryWriter::BinaryWriter(Containers::StringView filename) {
|
||||
_file = std::fopen(filename.data(), "wb");
|
||||
if(!_file) {
|
||||
LOG_ERROR_FORMAT("Couldn't open {} for reading: {}", filename, std::strerror(errno));
|
||||
}
|
||||
}
|
||||
|
||||
Writer::~Writer() {
|
||||
BinaryWriter::~BinaryWriter() {
|
||||
closeFile();
|
||||
}
|
||||
|
||||
bool
|
||||
Writer::open() {
|
||||
BinaryWriter::open() {
|
||||
return _file;
|
||||
}
|
||||
|
||||
void
|
||||
Writer::closeFile() {
|
||||
BinaryWriter::closeFile() {
|
||||
std::fflush(_file);
|
||||
std::fclose(_file);
|
||||
_file = nullptr;
|
||||
}
|
||||
|
||||
std::int64_t
|
||||
Writer::position() {
|
||||
BinaryWriter::position() {
|
||||
return _ftelli64(_file);
|
||||
}
|
||||
|
||||
Containers::ArrayView<const char>
|
||||
Writer::array() const {
|
||||
BinaryWriter::array() const {
|
||||
return _data;
|
||||
}
|
||||
|
||||
std::size_t
|
||||
Writer::arrayPosition() const {
|
||||
BinaryWriter::arrayPosition() const {
|
||||
return _index;
|
||||
}
|
||||
|
||||
bool
|
||||
Writer::flushToFile() {
|
||||
BinaryWriter::flushToFile() {
|
||||
bool ret = writeArray(_data);
|
||||
std::fflush(_file);
|
||||
_data = Containers::Array<char>{};
|
||||
|
@ -72,62 +72,62 @@ Writer::flushToFile() {
|
|||
}
|
||||
|
||||
bool
|
||||
Writer::writeChar(char value) {
|
||||
BinaryWriter::writeChar(char value) {
|
||||
return std::fwrite(&value, sizeof(char), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Writer::writeInt8(std::int8_t value) {
|
||||
BinaryWriter::writeInt8(std::int8_t value) {
|
||||
return std::fwrite(&value, sizeof(std::int8_t), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Writer::writeUint8(std::uint8_t value) {
|
||||
BinaryWriter::writeUint8(std::uint8_t value) {
|
||||
return std::fwrite(&value, sizeof(std::uint8_t), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Writer::writeInt16(std::int16_t value) {
|
||||
BinaryWriter::writeInt16(std::int16_t value) {
|
||||
return std::fwrite(&value, sizeof(std::int16_t), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Writer::writeUint16(std::uint16_t value) {
|
||||
BinaryWriter::writeUint16(std::uint16_t value) {
|
||||
return std::fwrite(&value, sizeof(std::uint16_t), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Writer::writeInt32(std::int32_t value) {
|
||||
BinaryWriter::writeInt32(std::int32_t value) {
|
||||
return std::fwrite(&value, sizeof(std::int32_t), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Writer::writeUint32(std::uint32_t value) {
|
||||
BinaryWriter::writeUint32(std::uint32_t value) {
|
||||
return std::fwrite(&value, sizeof(std::uint32_t), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Writer::writeInt64(std::int64_t value) {
|
||||
BinaryWriter::writeInt64(std::int64_t value) {
|
||||
return std::fwrite(&value, sizeof(std::int64_t), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Writer::writeUint64(std::uint64_t value) {
|
||||
BinaryWriter::writeUint64(std::uint64_t value) {
|
||||
return std::fwrite(&value, sizeof(std::uint64_t), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Writer::writeFloat(float value) {
|
||||
BinaryWriter::writeFloat(float value) {
|
||||
return std::fwrite(&value, sizeof(float), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Writer::writeDouble(double value) {
|
||||
BinaryWriter::writeDouble(double value) {
|
||||
return std::fwrite(&value, sizeof(double), 1, _file) == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Writer::writeArray(Containers::ArrayView<const char> array) {
|
||||
BinaryWriter::writeArray(Containers::ArrayView<const char> array) {
|
||||
if(array.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ Writer::writeArray(Containers::ArrayView<const char> array) {
|
|||
}
|
||||
|
||||
bool
|
||||
Writer::writeUEString(Containers::StringView str) {
|
||||
BinaryWriter::writeUEString(Containers::StringView str) {
|
||||
if(str.size() > UINT32_MAX) {
|
||||
LOG_ERROR_FORMAT("String is too big. Expected size() < UINT32_MAX, got {} instead.", str.size());
|
||||
return false;
|
||||
|
@ -154,7 +154,7 @@ Writer::writeUEString(Containers::StringView str) {
|
|||
}
|
||||
|
||||
std::size_t
|
||||
Writer::writeUEStringToArray(Containers::StringView value) {
|
||||
BinaryWriter::writeUEStringToArray(Containers::StringView value) {
|
||||
return writeValueToArray<std::uint32_t>(std::uint32_t(value.size()) + 1u) +
|
||||
writeDataToArray(Containers::ArrayView<const char>{value}) +
|
||||
writeValueToArray<char>('\0');
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -26,18 +26,18 @@
|
|||
|
||||
using namespace Corrade;
|
||||
|
||||
namespace BinaryIo {
|
||||
namespace Gvas {
|
||||
|
||||
class Writer {
|
||||
class BinaryWriter {
|
||||
public:
|
||||
explicit Writer(Containers::StringView filename);
|
||||
~Writer();
|
||||
explicit BinaryWriter(Containers::StringView filename);
|
||||
~BinaryWriter();
|
||||
|
||||
Writer(const Writer& other) = delete;
|
||||
Writer& operator=(const Writer& other) = delete;
|
||||
BinaryWriter(const BinaryWriter& other) = delete;
|
||||
BinaryWriter& operator=(const BinaryWriter& other) = delete;
|
||||
|
||||
Writer(Writer&& other) = default;
|
||||
Writer& operator=(Writer&& other) = default;
|
||||
BinaryWriter(BinaryWriter&& other) = default;
|
||||
BinaryWriter& operator=(BinaryWriter&& other) = default;
|
||||
|
||||
bool open();
|
||||
|
102
src/Gvas/CMakeLists.txt
Normal file
102
src/Gvas/CMakeLists.txt
Normal file
|
@ -0,0 +1,102 @@
|
|||
# MassBuilderSaveTool
|
||||
# Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
add_library(Gvas STATIC EXCLUDE_FROM_ALL
|
||||
Serialisers/Serialisers.h
|
||||
Serialisers/AbstractUnrealCollectionProperty.h
|
||||
Serialisers/AbstractUnrealProperty.h
|
||||
Serialisers/AbstractUnrealStruct.h
|
||||
Serialisers/ArrayProperty.h
|
||||
Serialisers/ArrayProperty.cpp
|
||||
Serialisers/BoolProperty.h
|
||||
Serialisers/BoolProperty.cpp
|
||||
Serialisers/ByteProperty.h
|
||||
Serialisers/ByteProperty.cpp
|
||||
Serialisers/ColourProperty.h
|
||||
Serialisers/ColourProperty.cpp
|
||||
Serialisers/DateTimeProperty.h
|
||||
Serialisers/DateTimeProperty.cpp
|
||||
Serialisers/EnumProperty.h
|
||||
Serialisers/EnumProperty.cpp
|
||||
Serialisers/FloatProperty.h
|
||||
Serialisers/FloatProperty.cpp
|
||||
Serialisers/GuidProperty.h
|
||||
Serialisers/GuidProperty.cpp
|
||||
Serialisers/IntProperty.h
|
||||
Serialisers/IntProperty.cpp
|
||||
Serialisers/MapProperty.h
|
||||
Serialisers/MapProperty.cpp
|
||||
Serialisers/ResourceProperty.h
|
||||
Serialisers/ResourceProperty.cpp
|
||||
Serialisers/RotatorProperty.h
|
||||
Serialisers/RotatorProperty.cpp
|
||||
Serialisers/StringProperty.h
|
||||
Serialisers/StringProperty.cpp
|
||||
Serialisers/SetProperty.h
|
||||
Serialisers/SetProperty.cpp
|
||||
Serialisers/Struct.h
|
||||
Serialisers/Struct.cpp
|
||||
Serialisers/TextProperty.h
|
||||
Serialisers/TextProperty.cpp
|
||||
Serialisers/UnrealProperty.h
|
||||
Serialisers/VectorProperty.h
|
||||
Serialisers/VectorProperty.cpp
|
||||
Serialisers/Vector2DProperty.h
|
||||
Serialisers/Vector2DProperty.cpp
|
||||
|
||||
Types/Types.h
|
||||
Types/ArrayProperty.h
|
||||
Types/BoolProperty.h
|
||||
Types/ByteProperty.h
|
||||
Types/ColourStructProperty.h
|
||||
Types/DateTimeStructProperty.h
|
||||
Types/EnumProperty.h
|
||||
Types/FloatProperty.h
|
||||
Types/GenericStructProperty.h
|
||||
Types/GuidStructProperty.h
|
||||
Types/IntProperty.h
|
||||
Types/MapProperty.h
|
||||
Types/NoneProperty.h
|
||||
Types/RotatorStructProperty.h
|
||||
Types/SetProperty.h
|
||||
Types/StringProperty.h
|
||||
Types/StructProperty.h
|
||||
Types/ResourceItemValue.h
|
||||
Types/TextProperty.h
|
||||
Types/UnrealProperty.h
|
||||
Types/UnrealPropertyBase.h
|
||||
Types/Vector2DStructProperty.h
|
||||
Types/VectorStructProperty.h
|
||||
|
||||
Gvas.h
|
||||
Debug.h
|
||||
Debug.cpp
|
||||
File.h
|
||||
File.cpp
|
||||
BinaryReader.h
|
||||
BinaryReader.cpp
|
||||
BinaryWriter.h
|
||||
BinaryWriter.cpp
|
||||
PropertySerialiser.h
|
||||
PropertySerialiser.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(Gvas PRIVATE
|
||||
Corrade::Containers
|
||||
Corrade::Utility
|
||||
Magnum::Magnum
|
||||
Logger
|
||||
)
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -19,8 +19,8 @@
|
|||
|
||||
#include "../Logger/Logger.h"
|
||||
|
||||
#include "../BinaryIo/Reader.h"
|
||||
#include "../BinaryIo/Writer.h"
|
||||
#include "BinaryReader.h"
|
||||
#include "BinaryWriter.h"
|
||||
|
||||
#include "File.h"
|
||||
|
||||
|
@ -87,7 +87,7 @@ File::saveToFile() {
|
|||
return false;
|
||||
}
|
||||
|
||||
BinaryIo::Writer writer{_filepath + ".tmp"_s};
|
||||
BinaryWriter writer{_filepath + ".tmp"_s};
|
||||
|
||||
if(!writer.open()) {
|
||||
_lastError = "Couldn't open the file for saving."_s;
|
||||
|
@ -175,7 +175,7 @@ File::loadData() {
|
|||
return;
|
||||
}
|
||||
|
||||
BinaryIo::Reader reader{_filepath};
|
||||
BinaryReader reader{_filepath};
|
||||
|
||||
if(!reader.open()) {
|
||||
_lastError = _filepath + " couldn't be opened."_s;
|
||||
|
@ -227,7 +227,9 @@ File::loadData() {
|
|||
|
||||
_customFormatData = Containers::Array<CustomFormatDataEntry>{custom_format_data_size};
|
||||
|
||||
for(auto& entry : _customFormatData) {
|
||||
for(std::uint32_t i = 0; i < custom_format_data_size; i++) {
|
||||
CustomFormatDataEntry entry;
|
||||
|
||||
if(!reader.readStaticArray(entry.id) ||
|
||||
!reader.readInt32(entry.value))
|
||||
{
|
||||
|
@ -235,6 +237,8 @@ File::loadData() {
|
|||
LOG_ERROR(_lastError);
|
||||
return;
|
||||
}
|
||||
|
||||
_customFormatData[i] = std::move(entry);
|
||||
}
|
||||
|
||||
if(!reader.readUEString(_saveType)) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -18,6 +18,8 @@
|
|||
|
||||
namespace Gvas {
|
||||
|
||||
class BinaryReader;
|
||||
class BinaryWriter;
|
||||
class File;
|
||||
class PropertySerialiser;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -39,8 +39,8 @@
|
|||
|
||||
#include "Types/NoneProperty.h"
|
||||
|
||||
#include "../BinaryIo/Reader.h"
|
||||
#include "../BinaryIo/Writer.h"
|
||||
#include "BinaryReader.h"
|
||||
#include "BinaryWriter.h"
|
||||
|
||||
#include "PropertySerialiser.h"
|
||||
|
||||
|
@ -76,7 +76,7 @@ PropertySerialiser::instance() {
|
|||
}
|
||||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
PropertySerialiser::read(BinaryIo::Reader& reader) {
|
||||
PropertySerialiser::read(BinaryReader& reader) {
|
||||
if(reader.peekChar() < 0 || reader.eof()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ PropertySerialiser::read(BinaryIo::Reader& reader) {
|
|||
}
|
||||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
PropertySerialiser::readItem(BinaryIo::Reader& reader, Containers::String type, std::size_t value_length,
|
||||
PropertySerialiser::readItem(BinaryReader& reader, Containers::String type, std::size_t value_length,
|
||||
Containers::String name)
|
||||
{
|
||||
if(reader.peekChar() < 0 || reader.eof()) {
|
||||
|
@ -115,7 +115,7 @@ PropertySerialiser::readItem(BinaryIo::Reader& reader, Containers::String type,
|
|||
}
|
||||
|
||||
Containers::Array<Types::UnrealPropertyBase::ptr>
|
||||
PropertySerialiser::readSet(BinaryIo::Reader& reader, Containers::StringView item_type, std::uint32_t count) {
|
||||
PropertySerialiser::readSet(BinaryReader& reader, Containers::StringView item_type, std::uint32_t count) {
|
||||
if(reader.peekChar() < 0 || reader.eof()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -160,7 +160,7 @@ PropertySerialiser::readSet(BinaryIo::Reader& reader, Containers::StringView ite
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
PropertySerialiser::deserialise(Containers::String name, Containers::String type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader)
|
||||
BinaryReader& reader)
|
||||
{
|
||||
Types::UnrealPropertyBase::ptr prop;
|
||||
auto serialiser = getSerialiser(type);
|
||||
|
@ -183,7 +183,7 @@ PropertySerialiser::deserialise(Containers::String name, Containers::String type
|
|||
}
|
||||
|
||||
bool PropertySerialiser::serialise(Types::UnrealPropertyBase::ptr& prop, Containers::StringView item_type,
|
||||
std::size_t& bytes_written, BinaryIo::Writer& writer)
|
||||
std::size_t& bytes_written, BinaryWriter& writer)
|
||||
{
|
||||
auto serialiser = getSerialiser(item_type);
|
||||
if(!serialiser) {
|
||||
|
@ -193,7 +193,7 @@ bool PropertySerialiser::serialise(Types::UnrealPropertyBase::ptr& prop, Contain
|
|||
}
|
||||
|
||||
bool
|
||||
PropertySerialiser::write(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryIo::Writer& writer) {
|
||||
PropertySerialiser::write(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer) {
|
||||
if(prop->name == "None" && prop->propertyType == "NoneProperty" && dynamic_cast<Types::NoneProperty*>(prop.get())) {
|
||||
bytes_written += writer.writeUEStringToArray(*prop->name);
|
||||
return true;
|
||||
|
@ -218,7 +218,7 @@ PropertySerialiser::write(Types::UnrealPropertyBase::ptr& prop, std::size_t& byt
|
|||
|
||||
bool
|
||||
PropertySerialiser::writeItem(Types::UnrealPropertyBase::ptr& prop, Containers::StringView item_type,
|
||||
std::size_t& bytes_written, BinaryIo::Writer& writer)
|
||||
std::size_t& bytes_written, BinaryWriter& writer)
|
||||
{
|
||||
if(prop->name == "None" && prop->propertyType == "NoneProperty" && dynamic_cast<Types::NoneProperty*>(prop.get())) {
|
||||
bytes_written += writer.writeUEStringToArray(*prop->name);
|
||||
|
@ -229,8 +229,7 @@ PropertySerialiser::writeItem(Types::UnrealPropertyBase::ptr& prop, Containers::
|
|||
}
|
||||
|
||||
bool PropertySerialiser::writeSet(Containers::ArrayView<Types::UnrealPropertyBase::ptr> props,
|
||||
Containers::StringView item_type, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer)
|
||||
Containers::StringView item_type, std::size_t& bytes_written, BinaryWriter& writer)
|
||||
{
|
||||
auto serialiser = getCollectionSerialiser(item_type);
|
||||
if(serialiser) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -25,7 +25,7 @@
|
|||
|
||||
#include "Types/UnrealPropertyBase.h"
|
||||
|
||||
#include "../BinaryIo/BinaryIo.h"
|
||||
#include "Gvas.h"
|
||||
|
||||
using namespace Corrade;
|
||||
|
||||
|
@ -35,21 +35,21 @@ class PropertySerialiser {
|
|||
public:
|
||||
static auto instance() -> PropertySerialiser&;
|
||||
|
||||
auto read(BinaryIo::Reader& reader) -> Types::UnrealPropertyBase::ptr;
|
||||
auto readItem(BinaryIo::Reader& reader, Containers::String type, std::size_t value_length, Containers::String name)
|
||||
auto read(BinaryReader& reader) -> Types::UnrealPropertyBase::ptr;
|
||||
auto readItem(BinaryReader& reader, Containers::String type, std::size_t value_length, Containers::String name)
|
||||
-> Types::UnrealPropertyBase::ptr;
|
||||
auto readSet(BinaryIo::Reader& reader, Containers::StringView item_type, std::uint32_t count)
|
||||
auto readSet(BinaryReader& reader, Containers::StringView item_type, std::uint32_t count)
|
||||
-> Containers::Array<Types::UnrealPropertyBase::ptr>;
|
||||
auto deserialise(Containers::String name, Containers::String type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader) -> Types::UnrealPropertyBase::ptr;
|
||||
BinaryReader& reader) -> Types::UnrealPropertyBase::ptr;
|
||||
|
||||
bool serialise(Types::UnrealPropertyBase::ptr& prop, Containers::StringView item_type,
|
||||
std::size_t& bytes_written, BinaryIo::Writer& writer);
|
||||
bool write(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryIo::Writer& writer);
|
||||
std::size_t& bytes_written, BinaryWriter& writer);
|
||||
bool write(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer);
|
||||
bool writeItem(Types::UnrealPropertyBase::ptr& prop, Containers::StringView item_type,
|
||||
std::size_t& bytes_written, BinaryIo::Writer& writer);
|
||||
std::size_t& bytes_written, BinaryWriter& writer);
|
||||
bool writeSet(Containers::ArrayView<Types::UnrealPropertyBase::ptr> props, Containers::StringView item_type,
|
||||
std::size_t& bytes_written, BinaryIo::Writer& writer);
|
||||
std::size_t& bytes_written, BinaryWriter& writer);
|
||||
|
||||
private:
|
||||
PropertySerialiser();
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -22,7 +22,6 @@
|
|||
#include <Corrade/Containers/StringView.h>
|
||||
|
||||
#include "../Gvas.h"
|
||||
#include "../../BinaryIo/BinaryIo.h"
|
||||
#include "../Types/UnrealPropertyBase.h"
|
||||
|
||||
using namespace Corrade;
|
||||
|
@ -42,12 +41,11 @@ class AbstractUnrealCollectionProperty {
|
|||
virtual auto types() -> StringArrayView = 0;
|
||||
|
||||
virtual auto deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
std::uint32_t count, BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
std::uint32_t count, BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> PropertyArray = 0;
|
||||
|
||||
virtual bool serialise(PropertyArrayView props, Containers::StringView item_type,
|
||||
std::size_t& bytes_written, BinaryIo::Writer& writer,
|
||||
PropertySerialiser& serialiser) = 0;
|
||||
std::size_t& bytes_written, BinaryWriter& writer, PropertySerialiser& serialiser) = 0;
|
||||
};
|
||||
|
||||
}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -21,11 +21,11 @@
|
|||
#include <Corrade/Containers/StringView.h>
|
||||
|
||||
#include "../Gvas.h"
|
||||
#include "../../BinaryIo/BinaryIo.h"
|
||||
#include "../Types/UnrealPropertyBase.h"
|
||||
|
||||
using namespace Corrade;
|
||||
|
||||
|
||||
namespace Gvas { namespace Serialisers {
|
||||
|
||||
using StringArrayView = Containers::ArrayView<const Containers::String>;
|
||||
|
@ -39,11 +39,11 @@ class AbstractUnrealProperty {
|
|||
virtual auto types() -> StringArrayView = 0;
|
||||
|
||||
virtual auto deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr = 0;
|
||||
|
||||
virtual bool serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser) = 0;
|
||||
virtual bool serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) = 0;
|
||||
};
|
||||
|
||||
}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -22,7 +22,6 @@
|
|||
#include <Corrade/Containers/StringView.h>
|
||||
|
||||
#include "../Gvas.h"
|
||||
#include "../../BinaryIo/BinaryIo.h"
|
||||
#include "../Types/UnrealPropertyBase.h"
|
||||
|
||||
using namespace Corrade;
|
||||
|
@ -37,9 +36,9 @@ class AbstractUnrealStruct {
|
|||
|
||||
virtual bool supportsType(Containers::StringView type) = 0;
|
||||
|
||||
virtual auto deserialise(BinaryIo::Reader& reader) -> Types::UnrealPropertyBase::ptr = 0;
|
||||
virtual auto deserialise(BinaryReader& reader) -> Types::UnrealPropertyBase::ptr = 0;
|
||||
|
||||
virtual bool serialise(Types::UnrealPropertyBase::ptr& structProp, BinaryIo::Writer& writer,
|
||||
virtual bool serialise(Types::UnrealPropertyBase::ptr& structProp, BinaryWriter& writer,
|
||||
std::size_t& bytes_written) = 0;
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -16,8 +16,8 @@
|
|||
|
||||
#include <Corrade/Containers/String.h>
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
#include "../PropertySerialiser.h"
|
||||
#include "../../Logger/Logger.h"
|
||||
|
||||
|
@ -27,7 +27,7 @@ namespace Gvas { namespace Serialisers {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
ArrayProperty::deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
Containers::String item_type;
|
||||
if(!reader.readUEString(item_type)) {
|
||||
|
@ -55,8 +55,8 @@ ArrayProperty::deserialiseProperty(Containers::StringView name, Containers::Stri
|
|||
}
|
||||
|
||||
bool
|
||||
ArrayProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser)
|
||||
ArrayProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser)
|
||||
{
|
||||
auto array_prop = dynamic_cast<Types::ArrayProperty*>(prop.get());
|
||||
if(!array_prop) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -32,10 +32,10 @@ class ArrayProperty : public UnrealProperty<Types::ArrayProperty> {
|
|||
|
||||
private:
|
||||
auto deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser) override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -14,8 +14,8 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
#include "../../Logger/Logger.h"
|
||||
|
||||
#include "BoolProperty.h"
|
||||
|
@ -31,7 +31,7 @@ BoolProperty::types() {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
BoolProperty::deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
if(value_length != 0) {
|
||||
LOG_ERROR_FORMAT("Invalid value length for bool property {}. Expected 0, got {} instead.", name, value_length);
|
||||
|
@ -56,7 +56,7 @@ BoolProperty::deserialise(Containers::StringView name, Containers::StringView ty
|
|||
}
|
||||
|
||||
bool
|
||||
BoolProperty::serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryIo::Writer& writer,
|
||||
BoolProperty::serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser)
|
||||
{
|
||||
auto bool_prop = dynamic_cast<Types::BoolProperty*>(prop.get());
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -34,10 +34,10 @@ class BoolProperty : public AbstractUnrealProperty {
|
|||
auto types() -> StringArrayView override;
|
||||
|
||||
auto deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
|
||||
bool serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryIo::Writer& writer,
|
||||
bool serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -14,8 +14,8 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
#include "../../Logger/Logger.h"
|
||||
|
||||
#include "ByteProperty.h"
|
||||
|
@ -31,7 +31,7 @@ ByteProperty::types() {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
ByteProperty::deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto prop = Containers::pointer<Types::ByteProperty>();
|
||||
|
||||
|
@ -68,7 +68,7 @@ ByteProperty::deserialise(Containers::StringView name, Containers::StringView ty
|
|||
}
|
||||
|
||||
bool
|
||||
ByteProperty::serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryIo::Writer& writer,
|
||||
ByteProperty::serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser)
|
||||
{
|
||||
auto byte_prop = dynamic_cast<Types::ByteProperty*>(prop.get());
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -32,10 +32,10 @@ class ByteProperty : public AbstractUnrealProperty {
|
|||
auto types() -> StringArrayView override;
|
||||
|
||||
auto deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
|
||||
bool serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryIo::Writer& writer,
|
||||
bool serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -14,8 +14,8 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
#include "../../Logger/Logger.h"
|
||||
|
||||
#include "ColourProperty.h"
|
||||
|
@ -24,7 +24,7 @@ namespace Gvas { namespace Serialisers {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
ColourProperty::deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto prop = Containers::pointer<Types::ColourStructProperty>();
|
||||
|
||||
|
@ -40,7 +40,7 @@ ColourProperty::deserialiseProperty(Containers::StringView name, Containers::Str
|
|||
|
||||
bool
|
||||
ColourProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser)
|
||||
BinaryWriter& writer, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto colour_prop = dynamic_cast<Types::ColourStructProperty*>(prop.get());
|
||||
if(!colour_prop) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -32,10 +32,10 @@ class ColourProperty : public UnrealProperty<Types::ColourStructProperty> {
|
|||
|
||||
private:
|
||||
auto deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser) override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -14,8 +14,8 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
#include "../../Logger/Logger.h"
|
||||
|
||||
#include "DateTimeProperty.h"
|
||||
|
@ -24,7 +24,7 @@ namespace Gvas { namespace Serialisers {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
DateTimeProperty::deserialiseProperty(Containers::StringView name, Containers::StringView type,
|
||||
std::size_t value_length, BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
std::size_t value_length, BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto prop = Containers::pointer<Types::DateTimeStructProperty>();
|
||||
|
||||
|
@ -38,7 +38,7 @@ DateTimeProperty::deserialiseProperty(Containers::StringView name, Containers::S
|
|||
|
||||
bool
|
||||
DateTimeProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser)
|
||||
BinaryWriter& writer, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto dt_prop = dynamic_cast<Types::DateTimeStructProperty*>(prop.get());
|
||||
if(!dt_prop) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -30,10 +30,10 @@ class DateTimeProperty : public UnrealProperty<Types::DateTimeStructProperty> {
|
|||
|
||||
private:
|
||||
auto deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser) override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -14,8 +14,8 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
#include "../../Logger/Logger.h"
|
||||
|
||||
#include "EnumProperty.h"
|
||||
|
@ -31,7 +31,7 @@ EnumProperty::types() {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
EnumProperty::deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto prop = Containers::pointer<Types::EnumProperty>();
|
||||
|
||||
|
@ -55,7 +55,7 @@ EnumProperty::deserialise(Containers::StringView name, Containers::StringView ty
|
|||
}
|
||||
|
||||
bool
|
||||
EnumProperty::serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryIo::Writer& writer,
|
||||
EnumProperty::serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser)
|
||||
{
|
||||
auto enum_prop = dynamic_cast<Types::EnumProperty*>(prop.get());
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -32,10 +32,10 @@ class EnumProperty : public AbstractUnrealProperty {
|
|||
auto types() -> StringArrayView override;
|
||||
|
||||
auto deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
|
||||
bool serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryIo::Writer& writer,
|
||||
bool serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -14,8 +14,8 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
#include "../../Logger/Logger.h"
|
||||
|
||||
#include "FloatProperty.h"
|
||||
|
@ -31,7 +31,7 @@ FloatProperty::types() {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
FloatProperty::deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto prop = Containers::pointer<Types::FloatProperty>();
|
||||
|
||||
|
@ -50,7 +50,7 @@ FloatProperty::deserialise(Containers::StringView name, Containers::StringView t
|
|||
}
|
||||
|
||||
bool
|
||||
FloatProperty::serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryIo::Writer& writer,
|
||||
FloatProperty::serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser)
|
||||
{
|
||||
auto float_prop = dynamic_cast<Types::FloatProperty*>(prop.get());
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -32,10 +32,10 @@ class FloatProperty : public AbstractUnrealProperty {
|
|||
auto types() -> StringArrayView override;
|
||||
|
||||
auto deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
|
||||
bool serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryIo::Writer& writer,
|
||||
bool serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -14,8 +14,8 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
#include "../../Logger/Logger.h"
|
||||
|
||||
#include "GuidProperty.h"
|
||||
|
@ -26,7 +26,7 @@ namespace Gvas { namespace Serialisers {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
GuidProperty::deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto prop = Containers::pointer<Types::GuidStructProperty>();
|
||||
|
||||
|
@ -39,8 +39,8 @@ GuidProperty::deserialiseProperty(Containers::StringView name, Containers::Strin
|
|||
}
|
||||
|
||||
bool
|
||||
GuidProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser)
|
||||
GuidProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser)
|
||||
{
|
||||
auto guid_prop = dynamic_cast<Types::GuidStructProperty*>(prop.get());
|
||||
if(!guid_prop) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -30,10 +30,10 @@ class GuidProperty : public UnrealProperty<Types::GuidStructProperty> {
|
|||
|
||||
private:
|
||||
auto deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser) override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -14,8 +14,8 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
#include "../../Logger/Logger.h"
|
||||
|
||||
#include "IntProperty.h"
|
||||
|
@ -24,7 +24,7 @@ namespace Gvas { namespace Serialisers {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
IntProperty::deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto prop = Containers::pointer<Types::IntProperty>();
|
||||
|
||||
|
@ -55,8 +55,8 @@ IntProperty::deserialiseProperty(Containers::StringView name, Containers::String
|
|||
}
|
||||
|
||||
bool
|
||||
IntProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser)
|
||||
IntProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser)
|
||||
{
|
||||
auto int_prop = dynamic_cast<Types::IntProperty*>(prop.get());
|
||||
if(!int_prop) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -30,10 +30,10 @@ class IntProperty : public UnrealProperty<Types::IntProperty> {
|
|||
|
||||
private:
|
||||
auto deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser) override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -14,8 +14,8 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
#include "../PropertySerialiser.h"
|
||||
#include "../Types/NoneProperty.h"
|
||||
#include "../../Logger/Logger.h"
|
||||
|
@ -28,7 +28,7 @@ namespace Gvas { namespace Serialisers {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
MapProperty::deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto prop = Containers::pointer<Types::MapProperty>();
|
||||
|
||||
|
@ -110,8 +110,8 @@ MapProperty::deserialiseProperty(Containers::StringView name, Containers::String
|
|||
}
|
||||
|
||||
bool
|
||||
MapProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser)
|
||||
MapProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser)
|
||||
{
|
||||
auto map_prop = dynamic_cast<Types::MapProperty*>(prop.get());
|
||||
if(!map_prop) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -30,10 +30,10 @@ class MapProperty : public UnrealProperty<Types::MapProperty> {
|
|||
|
||||
private:
|
||||
auto deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser) override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -14,8 +14,8 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
#include "../PropertySerialiser.h"
|
||||
#include "../Types/IntProperty.h"
|
||||
#include "../Types/NoneProperty.h"
|
||||
|
@ -29,8 +29,7 @@ namespace Gvas { namespace Serialisers {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
ResourceProperty::deserialiseProperty(Containers::StringView name, Containers::StringView type,
|
||||
std::size_t value_length, BinaryIo::Reader& reader,
|
||||
PropertySerialiser& serialiser)
|
||||
std::size_t value_length, BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto prop = Containers::pointer<Types::ResourceItemValue>();
|
||||
|
||||
|
@ -82,7 +81,7 @@ ResourceProperty::deserialiseProperty(Containers::StringView name, Containers::S
|
|||
|
||||
bool
|
||||
ResourceProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser)
|
||||
BinaryWriter& writer, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto res_prop = dynamic_cast<Types::ResourceItemValue*>(prop.get());
|
||||
if(!res_prop) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -30,10 +30,10 @@ class ResourceProperty : public UnrealProperty<Types::ResourceItemValue> {
|
|||
|
||||
private:
|
||||
auto deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser) override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -14,8 +14,8 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
#include "../../Logger/Logger.h"
|
||||
|
||||
#include "RotatorProperty.h"
|
||||
|
@ -24,7 +24,7 @@ namespace Gvas { namespace Serialisers {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
RotatorProperty::deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto prop = Containers::pointer<Types::RotatorStructProperty>();
|
||||
|
||||
|
@ -38,7 +38,7 @@ RotatorProperty::deserialiseProperty(Containers::StringView name, Containers::St
|
|||
|
||||
bool
|
||||
RotatorProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser)
|
||||
BinaryWriter& writer, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto rotator = dynamic_cast<Types::RotatorStructProperty*>(prop.get());
|
||||
if(!rotator) {
|
||||
|
@ -46,8 +46,7 @@ RotatorProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::si
|
|||
return false;
|
||||
}
|
||||
|
||||
bytes_written += writer.writeValueToArray<float>(rotator->x) +
|
||||
writer.writeValueToArray<float>(rotator->y) +
|
||||
bytes_written += writer.writeValueToArray<float>(rotator->x) + writer.writeValueToArray<float>(rotator->y) +
|
||||
writer.writeValueToArray<float>(rotator->z);
|
||||
|
||||
return true;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -30,10 +30,10 @@ class RotatorProperty : public UnrealProperty<Types::RotatorStructProperty> {
|
|||
|
||||
private:
|
||||
auto deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser) override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -14,8 +14,8 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
#include "../PropertySerialiser.h"
|
||||
#include "../../Logger/Logger.h"
|
||||
|
||||
|
@ -25,7 +25,7 @@ namespace Gvas { namespace Serialisers {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
SetProperty::deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
Containers::String item_type;
|
||||
if(!reader.readUEString(item_type)) {
|
||||
|
@ -59,8 +59,8 @@ SetProperty::deserialiseProperty(Containers::StringView name, Containers::String
|
|||
}
|
||||
|
||||
bool
|
||||
SetProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser)
|
||||
SetProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser)
|
||||
{
|
||||
auto set_prop = dynamic_cast<Types::SetProperty*>(prop.get());
|
||||
if(!set_prop) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -30,10 +30,10 @@ class SetProperty : public UnrealProperty<Types::SetProperty> {
|
|||
|
||||
private:
|
||||
auto deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser) override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -14,8 +14,8 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
#include "../../Logger/Logger.h"
|
||||
|
||||
#include "StringProperty.h"
|
||||
|
@ -33,7 +33,7 @@ StringProperty::types() {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
StringProperty::deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto prop = Containers::pointer<Types::StringProperty>(type);
|
||||
|
||||
|
@ -56,7 +56,7 @@ StringProperty::deserialise(Containers::StringView name, Containers::StringView
|
|||
}
|
||||
|
||||
bool
|
||||
StringProperty::serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryIo::Writer& writer,
|
||||
StringProperty::serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser)
|
||||
{
|
||||
auto str_prop = dynamic_cast<Types::StringProperty*>(prop.get());
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -32,10 +32,10 @@ class StringProperty : public AbstractUnrealProperty {
|
|||
auto types() -> StringArrayView override;
|
||||
|
||||
auto deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
|
||||
bool serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryIo::Writer& writer,
|
||||
bool serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -16,8 +16,8 @@
|
|||
|
||||
#include <Corrade/Containers/String.h>
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
#include "../PropertySerialiser.h"
|
||||
#include "../Types/GenericStructProperty.h"
|
||||
#include "../Types/NoneProperty.h"
|
||||
|
@ -36,7 +36,7 @@ Struct::types() {
|
|||
|
||||
PropertyArray
|
||||
Struct::deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
std::uint32_t count, BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
std::uint32_t count, BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
Containers::String item_type;
|
||||
if(!reader.readUEString(item_type)) {
|
||||
|
@ -89,7 +89,7 @@ Struct::deserialise(Containers::StringView name, Containers::StringView type, st
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
Struct::deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
Containers::String item_type;
|
||||
if(!reader.readUEString(item_type)) {
|
||||
|
@ -127,7 +127,7 @@ Struct::deserialise(Containers::StringView name, Containers::StringView type, st
|
|||
|
||||
bool
|
||||
Struct::serialise(PropertyArrayView props, Containers::StringView item_type, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser)
|
||||
BinaryWriter& writer, PropertySerialiser& serialiser)
|
||||
{
|
||||
bytes_written += writer.writeUEStringToArray(*(props.front()->name));
|
||||
bytes_written += writer.writeUEStringToArray(item_type);
|
||||
|
@ -170,7 +170,7 @@ Struct::serialise(PropertyArrayView props, Containers::StringView item_type, std
|
|||
}
|
||||
|
||||
bool
|
||||
Struct::serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryIo::Writer& writer,
|
||||
Struct::serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser)
|
||||
{
|
||||
auto struct_prop = dynamic_cast<Types::StructProperty*>(prop.get());
|
||||
|
@ -198,7 +198,7 @@ Struct::serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_writt
|
|||
|
||||
Types::StructProperty::ptr
|
||||
Struct::readStructValue(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
static_cast<void>(value_length);
|
||||
|
||||
|
@ -223,7 +223,7 @@ Struct::readStructValue(Containers::StringView name, Containers::StringView type
|
|||
}
|
||||
|
||||
bool
|
||||
Struct::writeStructValue(Types::StructProperty* prop, std::size_t& bytes_written, BinaryIo::Writer& writer,
|
||||
Struct::writeStructValue(Types::StructProperty* prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser)
|
||||
{
|
||||
auto struct_prop = dynamic_cast<Types::GenericStructProperty*>(prop);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -34,21 +34,21 @@ class Struct : public AbstractUnrealProperty, public AbstractUnrealCollectionPro
|
|||
auto types() -> StringArrayView override;
|
||||
|
||||
auto deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
std::uint32_t count, BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
std::uint32_t count, BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> PropertyArray override;
|
||||
auto deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
|
||||
bool serialise(PropertyArrayView props, Containers::StringView item_type, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser) override;
|
||||
bool serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryIo::Writer& writer,
|
||||
BinaryWriter& writer, PropertySerialiser& serialiser) override;
|
||||
bool serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
|
||||
private:
|
||||
auto readStructValue(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser) -> Types::StructProperty::ptr;
|
||||
bool writeStructValue(Types::StructProperty* prop, std::size_t& bytes_written, BinaryIo::Writer& writer,
|
||||
BinaryReader& reader, PropertySerialiser& serialiser) -> Types::StructProperty::ptr;
|
||||
bool writeStructValue(Types::StructProperty* prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser);
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -18,8 +18,8 @@
|
|||
|
||||
#include "../../Logger/Logger.h"
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
|
||||
#include "TextProperty.h"
|
||||
|
||||
|
@ -27,7 +27,7 @@ namespace Gvas { namespace Serialisers {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
TextProperty::deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto prop = Containers::pointer<Types::TextProperty>();
|
||||
|
||||
|
@ -73,8 +73,8 @@ TextProperty::deserialiseProperty(Containers::StringView name, Containers::Strin
|
|||
}
|
||||
|
||||
bool
|
||||
TextProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser)
|
||||
TextProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser)
|
||||
{
|
||||
auto text_prop = dynamic_cast<Types::TextProperty*>(prop.get());
|
||||
if(!text_prop) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -30,10 +30,10 @@ class TextProperty : public UnrealProperty<Types::TextProperty> {
|
|||
|
||||
private:
|
||||
auto deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser) override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -52,13 +52,13 @@ class UnrealProperty : public AbstractUnrealProperty {
|
|||
}
|
||||
|
||||
auto deserialise(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override
|
||||
{
|
||||
return deserialiseProperty(name, type, value_length, reader, serialiser);
|
||||
}
|
||||
|
||||
bool serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryIo::Writer& writer,
|
||||
bool serialise(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override
|
||||
{
|
||||
return serialiseProperty(prop, bytes_written, writer, serialiser);
|
||||
|
@ -66,11 +66,11 @@ class UnrealProperty : public AbstractUnrealProperty {
|
|||
|
||||
private:
|
||||
virtual auto deserialiseProperty(Containers::StringView name, Containers::StringView type,
|
||||
std::size_t value_length, BinaryIo::Reader& reader,
|
||||
PropertySerialiser& serialiser) -> Types::UnrealPropertyBase::ptr = 0;
|
||||
std::size_t value_length, BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr = 0;
|
||||
|
||||
virtual bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser) = 0;
|
||||
BinaryWriter& writer, PropertySerialiser& serialiser) = 0;
|
||||
};
|
||||
|
||||
}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -14,8 +14,8 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
#include "../../Logger/Logger.h"
|
||||
|
||||
#include "Vector2DProperty.h"
|
||||
|
@ -24,8 +24,7 @@ namespace Gvas { namespace Serialisers {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
Vector2DProperty::deserialiseProperty(Containers::StringView name, Containers::StringView type,
|
||||
std::size_t value_length, BinaryIo::Reader& reader,
|
||||
PropertySerialiser& serialiser)
|
||||
std::size_t value_length, BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto prop = Containers::pointer<Types::Vector2DStructProperty>();
|
||||
|
||||
|
@ -39,7 +38,7 @@ Vector2DProperty::deserialiseProperty(Containers::StringView name, Containers::S
|
|||
|
||||
bool
|
||||
Vector2DProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser)
|
||||
BinaryWriter& writer, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto vector = dynamic_cast<Types::Vector2DStructProperty*>(prop.get());
|
||||
if(!vector) {
|
||||
|
@ -47,8 +46,7 @@ Vector2DProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::s
|
|||
return false;
|
||||
}
|
||||
|
||||
bytes_written += writer.writeValueToArray<float>(vector->x) +
|
||||
writer.writeValueToArray<float>(vector->y);
|
||||
bytes_written += writer.writeValueToArray<float>(vector->x) + writer.writeValueToArray<float>(vector->y);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -30,10 +30,10 @@ class Vector2DProperty : public UnrealProperty<Types::Vector2DStructProperty> {
|
|||
|
||||
private:
|
||||
auto deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser) override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -16,8 +16,8 @@
|
|||
|
||||
#include "../../Logger/Logger.h"
|
||||
|
||||
#include "../../BinaryIo/Reader.h"
|
||||
#include "../../BinaryIo/Writer.h"
|
||||
#include "../BinaryReader.h"
|
||||
#include "../BinaryWriter.h"
|
||||
|
||||
#include "VectorProperty.h"
|
||||
|
||||
|
@ -25,7 +25,7 @@ namespace Gvas { namespace Serialisers {
|
|||
|
||||
Types::UnrealPropertyBase::ptr
|
||||
VectorProperty::deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto prop = Containers::pointer<Types::VectorStructProperty>();
|
||||
|
||||
|
@ -39,7 +39,7 @@ VectorProperty::deserialiseProperty(Containers::StringView name, Containers::Str
|
|||
|
||||
bool
|
||||
VectorProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser)
|
||||
BinaryWriter& writer, PropertySerialiser& serialiser)
|
||||
{
|
||||
auto vector = dynamic_cast<Types::VectorStructProperty*>(prop.get());
|
||||
if(!vector) {
|
||||
|
@ -47,8 +47,7 @@ VectorProperty::serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::siz
|
|||
return false;
|
||||
}
|
||||
|
||||
bytes_written += writer.writeValueToArray<float>(vector->x) +
|
||||
writer.writeValueToArray<float>(vector->y) +
|
||||
bytes_written += writer.writeValueToArray<float>(vector->x) + writer.writeValueToArray<float>(vector->y) +
|
||||
writer.writeValueToArray<float>(vector->z);
|
||||
|
||||
return true;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -30,10 +30,10 @@ class VectorProperty : public UnrealProperty<Types::VectorStructProperty> {
|
|||
|
||||
private:
|
||||
auto deserialiseProperty(Containers::StringView name, Containers::StringView type, std::size_t value_length,
|
||||
BinaryIo::Reader& reader, PropertySerialiser& serialiser)
|
||||
BinaryReader& reader, PropertySerialiser& serialiser)
|
||||
-> Types::UnrealPropertyBase::ptr override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written,
|
||||
BinaryIo::Writer& writer, PropertySerialiser& serialiser) override;
|
||||
bool serialiseProperty(Types::UnrealPropertyBase::ptr& prop, std::size_t& bytes_written, BinaryWriter& writer,
|
||||
PropertySerialiser& serialiser) override;
|
||||
};
|
||||
|
||||
}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
28
src/Logger/CMakeLists.txt
Normal file
28
src/Logger/CMakeLists.txt
Normal file
|
@ -0,0 +1,28 @@
|
|||
# MassBuilderSaveTool
|
||||
# Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
add_library(Logger STATIC EXCLUDE_FROM_ALL
|
||||
Logger.h
|
||||
Logger.cpp
|
||||
EntryType.h
|
||||
MagnumLogBuffer.h
|
||||
MagnumLogBuffer.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(Logger PRIVATE
|
||||
Corrade::Utility
|
||||
Magnum::Magnum
|
||||
)
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// MassBuilderSaveTool
|
||||
// Copyright (C) 2021-2024 Guillaume Jacquemin
|
||||
// Copyright (C) 2021-2023 Guillaume Jacquemin
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue