# platforms for which to assemble a setup
self.setup_platforms = [ 'local', 'x86', 'x64', 'win32' ]
# paks to assemble in the setup
- self.setup_packs = [ 'Q3Pack', 'UrTPack', ] # 'UFOAIPack', 'Q2WPack', 'ReactionPack' ]
+ self.setup_packs = [ 'Q3Pack', 'UrTPack', 'ETPack', ] # 'UFOAIPack', 'Q2WPack', 'ReactionPack' ]
def __repr__( self ):
return 'config: target=%s config=%s' % ( self.target_selected, self.config_selected )
case GAME_REACTION:
gtk_combo_box_append_text( GTK_COMBO_BOX( combo ), _( "Reaction Quake 3" ) );
break;
+ case GAME_ET:
+ gtk_combo_box_append_text( GTK_COMBO_BOX( combo ), _( "Wolfenstein: Enemy Territory" ) );
+ break;
}
iGame++;
}
case GAME_REACTION:
gameFilePath += "reaction.game";
break;
+ case GAME_ET:
+ gameFilePath += "et.game";
+ break;
}
Sys_Printf( "game file: %s\n", gameFilePath.GetBuffer() );
// for a specific game.
break;
}
+ case GAME_ET: {
+#ifdef _WIN32
+ fprintf( fg, " "ENGINE_ATTRIBUTE "=\"ET.exe\"\n");
+#elif __linux__
+ fprintf( fg, " "ENGINE_ATTRIBUTE "=\"et\"\n" );
+#endif
+ fprintf( fg, " "TOOLS_ATTRIBUTE "=\"%sinstalls/"ET_PACK "/game\"\n", g_strAppPath.GetBuffer() );
+ fprintf( fg, " prefix=\".etwolf\"\n" );
+ Str source = g_strAppPath.GetBuffer();
+ source += "installs/";
+ source += ET_PACK;
+ source += "/install/";
+ Str dest = m_strEngine.GetBuffer();
+ CopyTree( source.GetBuffer(), dest.GetBuffer() );
+ // Hardcoded fix for "missing" shaderlist in gamepack
+ dest += "/etmain/scripts/shaderlist.txt";
+ if(CheckFile(dest.GetBuffer()) != PATH_FILE) {
+ source += "etmain/scripts/default_shaderlist.txt";
+ radCopyFile(source.GetBuffer(),dest.GetBuffer());
+ }
+ fprintf( fg, " basegame=\"etmain\"\n" );
+ break;
+ }
}
fprintf( fg, "/>\n" );
fclose( fg );
if ( stricmp( dirname, REACTION_PACK ) == 0 ) {
m_availGames[ iGame++ ] = GAME_REACTION;
}
+ if ( stricmp( dirname, ET_PACK ) == 0 ) {
+ m_availGames[ iGame++ ] = GAME_ET;
+ }
}
Sys_Printf( "No installable games found in: %s\n",
pakPaths.GetBuffer() );