mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-09 19:41:04 +00:00
* added UFOAI_PACK support
* fixed prefix option for none q3 based games git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@233 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
parent
bc05037367
commit
3c907d00a7
1 changed files with 8 additions and 2 deletions
|
@ -3237,9 +3237,9 @@ void CGameInstall::Run() {
|
||||||
fprintf( fg, " name=\"%s\"\n", m_strName.GetBuffer() );
|
fprintf( fg, " name=\"%s\"\n", m_strName.GetBuffer() );
|
||||||
fprintf( fg, " gametools=\"%sgames\"\n", g_strAppPath.GetBuffer() );
|
fprintf( fg, " gametools=\"%sgames\"\n", g_strAppPath.GetBuffer() );
|
||||||
fprintf( fg, " enginepath=\"%s\"\n", m_strEngine.GetBuffer() );
|
fprintf( fg, " enginepath=\"%s\"\n", m_strEngine.GetBuffer() );
|
||||||
fprintf( fg, " prefix=\".q3a\"\n" );
|
|
||||||
switch ( m_availGames[ m_nComboSelect ] ) {
|
switch ( m_availGames[ m_nComboSelect ] ) {
|
||||||
case GAME_Q3: {
|
case GAME_Q3: {
|
||||||
|
fprintf( fg, " prefix=\".q3a\"\n" );
|
||||||
Str source = g_strAppPath.GetBuffer();
|
Str source = g_strAppPath.GetBuffer();
|
||||||
source += "installs/";
|
source += "installs/";
|
||||||
source += Q3_PACK;
|
source += Q3_PACK;
|
||||||
|
@ -3249,6 +3249,7 @@ void CGameInstall::Run() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GAME_URT: {
|
case GAME_URT: {
|
||||||
|
fprintf( fg, " prefix=\".q3a\"\n" );
|
||||||
Str source = g_strAppPath.GetBuffer();
|
Str source = g_strAppPath.GetBuffer();
|
||||||
source += "installs/";
|
source += "installs/";
|
||||||
source += URT_PACK;
|
source += URT_PACK;
|
||||||
|
@ -3258,6 +3259,7 @@ void CGameInstall::Run() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GAME_UFOAI: {
|
case GAME_UFOAI: {
|
||||||
|
fprintf( fg, " prefix=\".ufoai\"\n" );
|
||||||
Str source = g_strAppPath.GetBuffer();
|
Str source = g_strAppPath.GetBuffer();
|
||||||
source += "installs/";
|
source += "installs/";
|
||||||
source += UFOAI_PACK;
|
source += UFOAI_PACK;
|
||||||
|
@ -3267,6 +3269,7 @@ void CGameInstall::Run() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GAME_WARSOW:
|
case GAME_WARSOW:
|
||||||
|
fprintf( fg, " prefix=\".warsow\"\n" );
|
||||||
fprintf( fg, " basegame=\"basewsw\"\n" );
|
fprintf( fg, " basegame=\"basewsw\"\n" );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -3293,7 +3296,10 @@ void CGameInstall::ScanGames() {
|
||||||
}
|
}
|
||||||
if ( stricmp( dirname, URT_PACK ) == 0 ) {
|
if ( stricmp( dirname, URT_PACK ) == 0 ) {
|
||||||
m_availGames[ iGame++ ] = GAME_URT;
|
m_availGames[ iGame++ ] = GAME_URT;
|
||||||
}
|
}
|
||||||
|
if ( stricmp( dirname, UFOAI_PACK ) == 0 ) {
|
||||||
|
m_availGames[ iGame++ ] = GAME_UFOAI;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue