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:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user