add and use path_extension_is()

This commit is contained in:
Garux
2021-10-03 17:13:12 +03:00
parent a0e79e8ecd
commit b6d60fb17c
20 changed files with 50 additions and 63 deletions

View File

@@ -1580,7 +1580,7 @@ void BuildShaderList( TextInputStream& shaderlist ){
{
// each token should be a shader filename
shaderFile << token;
if( !string_equal_nocase( path_get_extension( token ), g_shadersExtension ) )
if( !path_extension_is( token, g_shadersExtension ) )
shaderFile << "." << g_shadersExtension;
ShaderList_addShaderFile( shaderFile.c_str() );