Use executables path for launching engine. This is defaulted to engine path for most games, but adjusted for those which have their binaries in a different directory (e.g. Quake2World).

This commit is contained in:
jdolan 2013-10-05 11:20:49 -04:00
parent 7d092b3417
commit 7c0ca95b7b

View file

@ -461,7 +461,7 @@ void CWatchBSP::RoutineProcessing(){
Sys_Printf( "Running engine...\n" );
Str cmd;
// build the command line
cmd = g_pGameDescription->mEnginePath.GetBuffer();
cmd = g_pGameDescription->mExecutablesPath.GetBuffer();
// this is game dependant
if ( !strcmp( ValueForKey( g_qeglobals.d_project_entity, "gamemode" ),"mp" ) ) {
// MP
@ -479,7 +479,7 @@ void CWatchBSP::RoutineProcessing(){
#endif
Str cmdline;
if ( g_pGameDescription->quake2 ) {
cmdline = ". +exec radiant.cfg +map ";
cmdline = "+exec radiant.cfg +map ";
cmdline += m_sBSPName;
}
else