2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-13 05:41:43 +00:00

fix: constraint on asset name arrays

This commit is contained in:
Jan Laupetin
2026-02-27 21:09:06 +01:00
parent e749514972
commit a6d63e9b31
6 changed files with 21 additions and 11 deletions
+4 -2
View File
@@ -8,7 +8,7 @@ using namespace T6;
namespace
{
constexpr const char* ASSET_TYPE_NAMES[ASSET_TYPE_COUNT]{
constexpr const char* ASSET_TYPE_NAMES[]{
"xmodelpieces",
"physpreset",
"physconstraints",
@@ -70,12 +70,14 @@ namespace
"footstepfxtable",
"zbarrier",
};
static_assert(std::extent_v<decltype(ASSET_TYPE_NAMES)> == ASSET_TYPE_COUNT);
constexpr const char* SUB_ASSET_TYPE_NAMES[SUB_ASSET_TYPE_COUNT]{
constexpr const char* SUB_ASSET_TYPE_NAMES[]{
"technique",
"vertexshader",
"pixelshader",
};
static_assert(std::extent_v<decltype(SUB_ASSET_TYPE_NAMES)> == SUB_ASSET_TYPE_COUNT);
} // namespace
namespace T6