* common shaders deduction: fallback to .game "common_shaders_dir" param (default = "common/"), so they may be configured all at once
#64
This commit is contained in:
@@ -25,7 +25,10 @@ CopiedString GetCommonShader( const char* name ){
|
||||
else{
|
||||
sstream.clear();
|
||||
if( string_empty( g_pGameDescription->getKeyValue( "show_wads" ) ) ){
|
||||
sstream << "textures/common/" << name;
|
||||
const char* commonDir = g_pGameDescription->getKeyValue( "common_shaders_dir" );
|
||||
if( string_empty( commonDir ) )
|
||||
commonDir = "common/";
|
||||
sstream << "textures/" << commonDir << name;
|
||||
}
|
||||
else{
|
||||
sstream << "textures/" << name;
|
||||
|
||||
Reference in New Issue
Block a user