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:
@ -13,4 +13,4 @@ std::string BlockOverflowException::DetailedMessage()
|
||||
char const* BlockOverflowException::what() const noexcept
|
||||
{
|
||||
return "Invalid Zone. XBlock overflowed.";
|
||||
}
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
@ -8,4 +8,4 @@ std::string InvalidHashException::DetailedMessage()
|
||||
char const* InvalidHashException::what() const noexcept
|
||||
{
|
||||
return "Loaded fastfile has an invalid hash.";
|
||||
}
|
||||
}
|
||||
|
@ -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.";
|
||||
}
|
||||
}
|
||||
|
@ -13,4 +13,4 @@ std::string InvalidOffsetBlockException::DetailedMessage()
|
||||
char const* InvalidOffsetBlockException::what() const noexcept
|
||||
{
|
||||
return "Zone referenced invalid block";
|
||||
}
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
@ -8,4 +8,4 @@ std::string InvalidSignatureException::DetailedMessage()
|
||||
char const* InvalidSignatureException::what() const noexcept
|
||||
{
|
||||
return "Loaded fastfile has an invalid signature.";
|
||||
}
|
||||
}
|
||||
|
@ -14,4 +14,4 @@ std::string InvalidVersionException::DetailedMessage()
|
||||
char const* InvalidVersionException::what() const noexcept
|
||||
{
|
||||
return "Encountered invalid version when loading.";
|
||||
}
|
||||
}
|
||||
|
@ -14,4 +14,4 @@ std::string InvalidXBlockSizeException::DetailedMessage()
|
||||
char const* InvalidXBlockSizeException::what() const noexcept
|
||||
{
|
||||
return "Zone has invalid block size";
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,8 @@
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
#include "LoadingException.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
class InvalidXBlockSizeException final : public LoadingException
|
||||
{
|
||||
uint64_t m_size;
|
||||
|
@ -13,4 +13,4 @@ std::string OutOfBlockBoundsException::DetailedMessage()
|
||||
char const* OutOfBlockBoundsException::what() const noexcept
|
||||
{
|
||||
return "Invalid Zone. Out of XBlock bounds.";
|
||||
}
|
||||
}
|
||||
|
@ -8,4 +8,4 @@ std::string TooManyAuthedGroupsException::DetailedMessage()
|
||||
char const* TooManyAuthedGroupsException::what() const noexcept
|
||||
{
|
||||
return "Loaded fastfile has too many authed groups.";
|
||||
}
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
@ -13,4 +13,4 @@ std::string UnsupportedAssetTypeException::DetailedMessage()
|
||||
char const* UnsupportedAssetTypeException::what() const noexcept
|
||||
{
|
||||
return "Zone has unsupported asset type.";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user