* support multiple Extra Resource Paths
This commit is contained in:
@@ -258,10 +258,10 @@ public:
|
||||
void flush(){
|
||||
if ( !m_buffer.empty() ) {
|
||||
m_tool.push_back( new VariableString( m_buffer.c_str() ) );
|
||||
// q3map2 ExtraResoucePath hack
|
||||
// q3map2 ExtraResourcePaths hack
|
||||
if( strstr( m_buffer.c_str(), "[RadiantPath]q3map2.[ExecutableType]" ) != nullptr // is q3map2
|
||||
&& strstr( m_buffer.c_str(), "[ExtraResoucePath]" ) == nullptr ){ // has no extra path right away (could have been added by this before)
|
||||
m_tool.push_back( new VariableString( "[ExtraResoucePath]" ) );
|
||||
&& strstr( m_buffer.c_str(), "[ExtraResourcePaths]" ) == nullptr ){ // has no extra path right away (could have been added by this before)
|
||||
m_tool.push_back( new VariableString( "[ExtraResourcePaths]" ) );
|
||||
}
|
||||
m_buffer.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user