834
834
//! @param s file stream to be used for reading later
835
835
//! @param filename name of the file to open
838
838
bool tConfItemBase::OpenFile( std::ifstream & s, tString const & filename, SearchPath path )
840
bool ret = ( ( path & Config ) && tDirectories::Config().Open(s, filename ) ) || ( ( path & Var ) && tDirectories::Var().Open(s, filename ) );
840
bool ret = ( ( path & Config ) && tDirectories::Config().Open(s, filename ) ) || ( ( path & Var ) && st_StringEndsWith(filename, ".cfg") && tDirectories::Var().Open(s, filename ) );
842
842
static char const * section = "INCLUDE_VOTE";
843
843
tRecorder::Playback( section, ret );