2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-07-03 09:41:50 +00:00

Reformat code with clang format

This commit is contained in:
Clang Format
2023-11-19 15:28:38 +01:00
committed by Jan
parent 22e17272fd
commit 6b4f5d94a8
1099 changed files with 16763 additions and 18076 deletions

View File

@ -13,4 +13,4 @@ std::string BlockOverflowException::DetailedMessage()
char const* BlockOverflowException::what() const noexcept
{
return "Invalid Zone. XBlock overflowed.";
}
}

View File

@ -14,7 +14,7 @@ InvalidChunkSizeException::InvalidChunkSizeException(const size_t size, const si
std::string InvalidChunkSizeException::DetailedMessage()
{
if(m_max > 0)
if (m_max > 0)
{
return "Zone chunk size has a chunk size of " + std::to_string(m_size) + " which is larger than the maximum of " + std::to_string(m_max);
}
@ -27,4 +27,4 @@ std::string InvalidChunkSizeException::DetailedMessage()
char const* InvalidChunkSizeException::what() const noexcept
{
return "Zone has invalid chunk size";
}
}

View File

@ -14,4 +14,4 @@ std::string InvalidFileNameException::DetailedMessage()
char const* InvalidFileNameException::what() const noexcept
{
return "The filename when created and when loaded does not match";
}
}

View File

@ -8,4 +8,4 @@ std::string InvalidHashException::DetailedMessage()
char const* InvalidHashException::what() const noexcept
{
return "Loaded fastfile has an invalid hash.";
}
}

View File

@ -1,5 +1,5 @@
#include "InvalidMagicException.h"
InvalidMagicException::InvalidMagicException(const char* expectedMagic)
{
m_expected_magic = expectedMagic;
@ -13,4 +13,4 @@ std::string InvalidMagicException::DetailedMessage()
char const* InvalidMagicException::what() const noexcept
{
return "Encountered invalid magic when loading.";
}
}

View File

@ -13,4 +13,4 @@ std::string InvalidOffsetBlockException::DetailedMessage()
char const* InvalidOffsetBlockException::what() const noexcept
{
return "Zone referenced invalid block";
}
}

View File

@ -8,11 +8,11 @@ InvalidOffsetBlockOffsetException::InvalidOffsetBlockOffsetException(XBlock* blo
std::string InvalidOffsetBlockOffsetException::DetailedMessage()
{
return "Zone referenced offset " + std::to_string(m_referenced_offset) + " of block " + m_referenced_block->m_name
+ " which is larger than its size " + std::to_string(m_referenced_block->m_buffer_size);
return "Zone referenced offset " + std::to_string(m_referenced_offset) + " of block " + m_referenced_block->m_name + " which is larger than its size "
+ std::to_string(m_referenced_block->m_buffer_size);
}
char const* InvalidOffsetBlockOffsetException::what() const noexcept
{
return "Zone referenced offset of block that is out of bounds";
}
}

View File

@ -8,4 +8,4 @@ std::string InvalidSignatureException::DetailedMessage()
char const* InvalidSignatureException::what() const noexcept
{
return "Loaded fastfile has an invalid signature.";
}
}

View File

@ -14,4 +14,4 @@ std::string InvalidVersionException::DetailedMessage()
char const* InvalidVersionException::what() const noexcept
{
return "Encountered invalid version when loading.";
}
}

View File

@ -14,4 +14,4 @@ std::string InvalidXBlockSizeException::DetailedMessage()
char const* InvalidXBlockSizeException::what() const noexcept
{
return "Zone has invalid block size";
}
}

View File

@ -1,7 +1,8 @@
#pragma once
#include <cstdint>
#include "LoadingException.h"
#include <cstdint>
class InvalidXBlockSizeException final : public LoadingException
{
uint64_t m_size;

View File

@ -13,4 +13,4 @@ std::string OutOfBlockBoundsException::DetailedMessage()
char const* OutOfBlockBoundsException::what() const noexcept
{
return "Invalid Zone. Out of XBlock bounds.";
}
}

View File

@ -8,4 +8,4 @@ std::string TooManyAuthedGroupsException::DetailedMessage()
char const* TooManyAuthedGroupsException::what() const noexcept
{
return "Loaded fastfile has too many authed groups.";
}
}

View File

@ -1,5 +1,5 @@
#include "UnexpectedEndOfFileException.h"
UnexpectedEndOfFileException::UnexpectedEndOfFileException() = default;
std::string UnexpectedEndOfFileException::DetailedMessage()
@ -10,4 +10,4 @@ std::string UnexpectedEndOfFileException::DetailedMessage()
char const* UnexpectedEndOfFileException::what() const noexcept
{
return "Unexpected end of file";
}
}

View File

@ -13,4 +13,4 @@ std::string UnsupportedAssetTypeException::DetailedMessage()
char const* UnsupportedAssetTypeException::what() const noexcept
{
return "Zone has unsupported asset type.";
}
}