initial quake live support (no pk3 support)

This commit is contained in:
Chris Brooke 2012-06-18 01:42:04 +01:00
parent 94aefb8f4c
commit d71d86a7a4
2 changed files with 34 additions and 0 deletions

View file

@ -3338,6 +3338,9 @@ void CGameInstall::BuildDialog() {
case GAME_ET:
gtk_combo_box_append_text( GTK_COMBO_BOX( combo ), _( "Wolfenstein: Enemy Territory" ) );
break;
case GAME_QL:
gtk_combo_box_append_text( GTK_COMBO_BOX( combo ), _( "Quake Live" ) );
break;
}
iGame++;
}
@ -3449,6 +3452,9 @@ void CGameInstall::Run() {
case GAME_ET:
gameFilePath += "et.game";
break;
case GAME_QL:
gameFilePath += "ql.game";
break;
}
Sys_Printf( "game file: %s\n", gameFilePath.GetBuffer() );
@ -3622,6 +3628,29 @@ void CGameInstall::Run() {
fprintf( fg, " basegame=\"etmain\"\n" );
break;
}
case GAME_QL: {
/*#ifdef _WIN32
fprintf( fg, " "ENGINE_ATTRIBUTE "=\"ql.exe\"\n");
#elif __linux__
fprintf( fg, " "ENGINE_ATTRIBUTE "=\"ql\"\n" );
#endif*/
fprintf( fg, " "TOOLS_ATTRIBUTE "=\"%sinstalls/"QL_PACK "/game\"\n", g_strAppPath.GetBuffer() );
fprintf( fg, " prefix=\".ql\"\n" );
Str source = g_strAppPath.GetBuffer();
source += "installs/";
source += QL_PACK;
source += "/install/";
Str dest = m_strEngine.GetBuffer();
radCopyTree( source.GetBuffer(), dest.GetBuffer() );
// Hardcoded fix for "missing" shaderlist in gamepack
dest += "/baseq3/scripts/shaderlist.txt";
if(CheckFile(dest.GetBuffer()) != PATH_FILE) {
source += "baseq3/scripts/default_shaderlist.txt";
radCopyFile(source.GetBuffer(),dest.GetBuffer());
}
fprintf( fg, " basegame=\"baseq3\"\n" );
break;
}
}
fprintf( fg, "/>\n" );
fclose( fg );
@ -3674,6 +3703,9 @@ void CGameInstall::ScanGames() {
if ( stricmp( dirname, ET_PACK ) == 0 ) {
m_availGames[ iGame++ ] = GAME_ET;
}
if ( stricmp( dirname, QL_PACK ) == 0 ) {
m_availGames[ iGame++ ] = GAME_QL;
}
}
Sys_Printf( "No installable games found in: %s\n",
pakPaths.GetBuffer() );

View file

@ -214,6 +214,7 @@ void Dump();
#define JA_PACK "JAPack"
#define REACTION_PACK "ReactionPack"
#define ET_PACK "ETPack"
#define QL_PACK "QLPack"
class CGameInstall : public Dialog {
public:
@ -238,6 +239,7 @@ enum gameType_e {
GAME_JA,
GAME_REACTION,
GAME_ET,
GAME_QL,
GAME_COUNT
};