mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 03:51:18 +00:00
Unvanquished appears in menu
This commit is contained in:
parent
94849adc93
commit
cfaa83f3b1
2 changed files with 27 additions and 0 deletions
|
@ -3479,6 +3479,9 @@ void CGameInstall::BuildDialog() {
|
||||||
case GAME_WOLF:
|
case GAME_WOLF:
|
||||||
gtk_combo_box_text_append_text( GTK_COMBO_BOX_TEXT( game_select_combo ), _( "Return To Castle Wolfenstein" ) );
|
gtk_combo_box_text_append_text( GTK_COMBO_BOX_TEXT( game_select_combo ), _( "Return To Castle Wolfenstein" ) );
|
||||||
break;
|
break;
|
||||||
|
case GAME_UNVANQUISHED:
|
||||||
|
gtk_combo_box_text_append_text( GTK_COMBO_BOX_TEXT( game_select_combo ), _( "Unvanquished" ) );
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
iGame++;
|
iGame++;
|
||||||
}
|
}
|
||||||
|
@ -3645,6 +3648,10 @@ void CGameInstall::Run() {
|
||||||
gamePack = WOLF_PACK;
|
gamePack = WOLF_PACK;
|
||||||
gameFilePath += WOLF_GAME;
|
gameFilePath += WOLF_GAME;
|
||||||
break;
|
break;
|
||||||
|
case GAME_UNVANQUISHED:
|
||||||
|
gamePack = UNVANQUISHED_PACK;
|
||||||
|
gameFilePath += UNVANQUISHED_GAME;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
Error( "Invalid game selected: %d", m_availGames[ m_nComboSelect ] );
|
Error( "Invalid game selected: %d", m_availGames[ m_nComboSelect ] );
|
||||||
}
|
}
|
||||||
|
@ -3832,6 +3839,20 @@ void CGameInstall::Run() {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case GAME_UNVANQUISHED: {
|
||||||
|
fprintf( fg, " prefix=\".unvanquished\"\n" );
|
||||||
|
fprintf( fg, " basegame=\"pkg\"\n" );
|
||||||
|
|
||||||
|
// Hardcoded fix for "missing" shaderlist in gamepack
|
||||||
|
Str dest = m_strEngine.GetBuffer();
|
||||||
|
dest += "/pkg/scripts/shaderlist.txt";
|
||||||
|
if( CheckFile( dest.GetBuffer() ) != PATH_FILE ) {
|
||||||
|
Str source = gameInstallPath.GetBuffer();
|
||||||
|
source += "pkg/scripts/default_shaderlist.txt";
|
||||||
|
radCopyFile( source.GetBuffer(), dest.GetBuffer() );
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fprintf( fg, "/>\n" );
|
fprintf( fg, "/>\n" );
|
||||||
fclose( fg );
|
fclose( fg );
|
||||||
|
@ -3896,6 +3917,9 @@ void CGameInstall::ScanGames() {
|
||||||
if ( stricmp( dirname, Q1_PACK ) == 0 ) {
|
if ( stricmp( dirname, Q1_PACK ) == 0 ) {
|
||||||
m_availGames[ iGame++ ] = GAME_Q1;
|
m_availGames[ iGame++ ] = GAME_Q1;
|
||||||
}
|
}
|
||||||
|
if ( stricmp( dirname, UNVANQUISHED_PACK ) == 0) {
|
||||||
|
m_availGames[ iGame++ ] = GAME_UNVANQUISHED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Sys_Printf( "No installable games found in: %s\n",
|
Sys_Printf( "No installable games found in: %s\n",
|
||||||
pakPaths.GetBuffer() );
|
pakPaths.GetBuffer() );
|
||||||
|
|
|
@ -217,6 +217,7 @@ void Dump();
|
||||||
#define STVEF_GAME "stvef.game"
|
#define STVEF_GAME "stvef.game"
|
||||||
#define WOLF_GAME "wolf.game"
|
#define WOLF_GAME "wolf.game"
|
||||||
#define Q1_GAME "q1.game"
|
#define Q1_GAME "q1.game"
|
||||||
|
#define UNVANQUISHED_GAME "unvanquished.game"
|
||||||
|
|
||||||
#define Q3_PACK "Q3Pack"
|
#define Q3_PACK "Q3Pack"
|
||||||
#define URT_PACK "UrTPack"
|
#define URT_PACK "UrTPack"
|
||||||
|
@ -233,6 +234,7 @@ void Dump();
|
||||||
#define STVEF_PACK "STVEFPack"
|
#define STVEF_PACK "STVEFPack"
|
||||||
#define WOLF_PACK "WolfPack"
|
#define WOLF_PACK "WolfPack"
|
||||||
#define Q1_PACK "Q1Pack"
|
#define Q1_PACK "Q1Pack"
|
||||||
|
#define UNVANQUISHED_PACK "UnvanquishedPack"
|
||||||
|
|
||||||
class CGameInstall : public Dialog {
|
class CGameInstall : public Dialog {
|
||||||
public:
|
public:
|
||||||
|
@ -262,6 +264,7 @@ public:
|
||||||
GAME_STVEF,
|
GAME_STVEF,
|
||||||
GAME_WOLF,
|
GAME_WOLF,
|
||||||
GAME_Q1,
|
GAME_Q1,
|
||||||
|
GAME_UNVANQUISHED,
|
||||||
GAME_COUNT
|
GAME_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue