mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-11-21 03:58:40 +00:00
fix(t6): save combined sound and effect overrides in none attachment unique (#1090)
This commit is contained in:
1 parent
2826174cf7
commit
6aac3e94e8
10 files changed
+136
-2
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#include "TestFiles.h"
|
||||
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <fstream>
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
std::string LoadTestFile(const std::filesystem::path& filePath)
|
||||
{
|
||||
const auto fileSize = static_cast<size_t>(fs::file_size(filePath));
|
||||
|
||||
std::ifstream file(filePath, std::ios::binary);
|
||||
REQUIRE(file.is_open());
|
||||
|
||||
std::string data(fileSize, '\0');
|
||||
file.read(data.data(), fileSize);
|
||||
|
||||
return data;
|
||||
}
|
||||
Reference in new issue
Block a user