2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-06-06 08:42:35 +00:00

FIxed techset dumping and loading to be the same, as well as added a missing image check to the BSP compiler to reduce the output prints when an image is missing.

This commit is contained in:
LJW-Dev
2025-10-11 18:42:09 +08:00
committed by Jan Laupetin
parent 68435e8c74
commit f3bf16405c
6 changed files with 16 additions and 7 deletions
@@ -1,6 +1,7 @@
#include "LoaderTechniqueSetT6.h"
#include "Game/T6/T6.h"
#include "Shader/ShaderCommon.h"
#include <cstring>
#include <format>
@@ -129,7 +130,7 @@ namespace
currPass->pixelShader->name = _strdup(pixelName.c_str());
currPass->pixelShader->prog.ps = NULL;
const auto psFileName = std::format("techniquesets/shader_bin/ps_{}", pixelName);
const auto psFileName = shader::GetFileNameForPixelShaderAssetName(pixelName);
const auto psFile = m_search_path.Open(psFileName);
if (!psFile.IsOpen())
{
@@ -153,7 +154,7 @@ namespace
currPass->vertexShader->name = _strdup(vertexName.c_str());
currPass->vertexShader->prog.vs = NULL;
const auto vsFileName = std::format("techniquesets/shader_bin/vs_{}", vertexName);
const auto vsFileName = shader::GetFileNameForVertexShaderAssetName(vertexName);
const auto vsFile = m_search_path.Open(vsFileName);
if (!vsFile.IsOpen())
{