* 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:
parent
a5fb9388c2
commit
c0c9f49433
|
|
@ -25,7 +25,10 @@ CopiedString GetCommonShader( const char* name ){
|
||||||
else{
|
else{
|
||||||
sstream.clear();
|
sstream.clear();
|
||||||
if( string_empty( g_pGameDescription->getKeyValue( "show_wads" ) ) ){
|
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{
|
else{
|
||||||
sstream << "textures/" << name;
|
sstream << "textures/" << name;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user