mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 08:05:45 +00:00
clang formatting
This commit is contained in:
parent
365502d819
commit
e2f8892278
@ -421,7 +421,7 @@ class LinkerImpl final : public Linker
|
||||
SearchPaths& sourceSearchPaths) const
|
||||
{
|
||||
SoundBankWriter::OutputPath = fs::path(m_args.GetOutputFolderPathForProject(projectName));
|
||||
|
||||
|
||||
const auto zone = CreateZoneForDefinition(targetName, zoneDefinition, &assetSearchPaths, &gdtSearchPaths, &sourceSearchPaths);
|
||||
auto result = zone != nullptr;
|
||||
if (zone)
|
||||
|
@ -14,7 +14,7 @@ const std::string ParsedCsvRow::GetValue(const std::string& header, bool require
|
||||
std::cerr << "ERROR: Required column \"" << header << "\" was not found";
|
||||
else
|
||||
std::cerr << "WARNING: Expected column \"" << header << "\" was not found";
|
||||
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,7 @@ public:
|
||||
explicit ParsedCsvRow(std::unordered_map<std::string, size_t>& headers, std::vector<std::string>& row);
|
||||
const std::string GetValue(const std::string& header, bool required = false) const;
|
||||
const float GetValueFloat(const std::string& header, bool required = false) const;
|
||||
|
||||
|
||||
template<typename T> T GetValueInt(const std::string& header, bool required = false) const
|
||||
{
|
||||
const auto& value = this->GetValue(header, required);
|
||||
@ -35,8 +35,8 @@ class ParsedCsv
|
||||
|
||||
public:
|
||||
explicit ParsedCsv(const CsvInputStream& inputStream, bool hasHeaders = true);
|
||||
|
||||
|
||||
size_t Size() const;
|
||||
|
||||
ParsedCsvRow operator[](size_t index) const;
|
||||
};
|
||||
};
|
||||
|
@ -44,4 +44,4 @@ struct WavHeader
|
||||
WavChunkHeader chunkHeader;
|
||||
WavFormatChunkPcm formatChunk;
|
||||
WavChunkHeader subChunkHeader;
|
||||
};
|
||||
};
|
||||
|
@ -19,7 +19,7 @@ std::unordered_map<unsigned int, unsigned char> INDEX_FOR_FRAMERATE{
|
||||
{44100, 5},
|
||||
{48000, 6},
|
||||
{96000, 7},
|
||||
{192000, 8},
|
||||
{192000, 8},
|
||||
};
|
||||
|
||||
class SoundBankWriterImpl : public SoundBankWriter
|
||||
|
@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
#include "SearchPath/ISearchPath.h"
|
||||
|
||||
#include <filesystem>
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
#include <filesystem>
|
||||
|
||||
class SoundBankWriter
|
||||
{
|
||||
@ -22,4 +22,4 @@ public:
|
||||
static std::unique_ptr<SoundBankWriter> Create(const std::string& fileName, std::ostream& stream, ISearchPath* assetSearchPath);
|
||||
|
||||
static std::filesystem::path OutputPath;
|
||||
};
|
||||
};
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include <ostream>
|
||||
#include <Sound/WavTypes.h>
|
||||
#include <ostream>
|
||||
|
||||
class WavWriter
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "StringUtils.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
namespace utils
|
||||
{
|
||||
@ -106,7 +106,7 @@ namespace utils
|
||||
{
|
||||
std::vector<std::string> strings{};
|
||||
std::istringstream stream(str);
|
||||
|
||||
|
||||
std::string s;
|
||||
while (std::getline(stream, s, delim))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user