mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
non monitored 'run engine after compile': set CWD to make some engines happy
closes #274
This commit is contained in:
@@ -92,7 +92,7 @@ public:
|
||||
}
|
||||
else if ( const char *ext = path_get_extension( name );
|
||||
!string_equal( name, "." ) && !string_equal( name, ".." )
|
||||
/* skip .pk3dir / .pk4dir / .dpkdir / .pakdir / .waddir the in root, they are processed as DirectoryArchive */
|
||||
/* skip .pk3dir / .pk4dir / .dpkdir / .pakdir / .waddir in the root, they are processed as DirectoryArchive */
|
||||
&& !( string_empty( root ) && string_length( ext ) == 6 && string_equal_nocase( ext + 3, "dir" ) ) ) {
|
||||
path.push_filename( name );
|
||||
|
||||
|
||||
@@ -595,8 +595,12 @@ void CWatchBSP::DoEBeginStep(){
|
||||
return;
|
||||
} // monitoring off or unmonitored command
|
||||
else if( !g_WatchBSP_Enabled || strstr( m_commands[ m_iCurrentStep ].c_str(), RADIANT_MONITOR_ADDRESS ) == nullptr ){
|
||||
if( g_WatchBSP_RunQuake )
|
||||
if( g_WatchBSP_RunQuake ){
|
||||
#ifdef WIN32 // vanilla quake3.exe, ioquake3.x86_64.exe are sensitive to CWD, set it
|
||||
m_commands.emplace_back( StringStream( "cd /D ", Quoted( EnginePath_get() ) ) );
|
||||
#endif
|
||||
m_commands.emplace_back( runEngineCmd( m_sBSPName.c_str() ) );
|
||||
}
|
||||
m_commands.erase( m_commands.cbegin(), m_commands.cbegin() + m_iCurrentStep );
|
||||
RunBatch( m_commands );
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user