mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-13 00:24:29 +00:00
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:
parent
7d092b3417
commit
7c0ca95b7b
1 changed files with 2 additions and 2 deletions
|
@ -461,7 +461,7 @@ void CWatchBSP::RoutineProcessing(){
|
||||||
Sys_Printf( "Running engine...\n" );
|
Sys_Printf( "Running engine...\n" );
|
||||||
Str cmd;
|
Str cmd;
|
||||||
// build the command line
|
// build the command line
|
||||||
cmd = g_pGameDescription->mEnginePath.GetBuffer();
|
cmd = g_pGameDescription->mExecutablesPath.GetBuffer();
|
||||||
// this is game dependant
|
// this is game dependant
|
||||||
if ( !strcmp( ValueForKey( g_qeglobals.d_project_entity, "gamemode" ),"mp" ) ) {
|
if ( !strcmp( ValueForKey( g_qeglobals.d_project_entity, "gamemode" ),"mp" ) ) {
|
||||||
// MP
|
// MP
|
||||||
|
@ -479,7 +479,7 @@ void CWatchBSP::RoutineProcessing(){
|
||||||
#endif
|
#endif
|
||||||
Str cmdline;
|
Str cmdline;
|
||||||
if ( g_pGameDescription->quake2 ) {
|
if ( g_pGameDescription->quake2 ) {
|
||||||
cmdline = ". +exec radiant.cfg +map ";
|
cmdline = "+exec radiant.cfg +map ";
|
||||||
cmdline += m_sBSPName;
|
cmdline += m_sBSPName;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue