case GAME_UFOAI:
combo_list = g_list_append( combo_list, "UFO: Alien Invasion" );
break;
+ case GAME_Q2W:
+ combo_list = g_list_append( combo_list, "Quake2World" );
+ break;
case GAME_WARSOW:
combo_list = g_list_append( combo_list, "Warsow" );
break;
fprintf( fg, " basegame=\"base\"\n" );
break;
}
- case GAME_WARSOW:
+ case GAME_Q2W: {
+ fprintf( fg, " prefix=\".quake2world\"\n" );
+ Str source = g_strAppPath.GetBuffer();
+ source += "installs/";
+ source += Q2W_PACK;
+ Str dest = m_strEngine.GetBuffer();
+ CopyTree( source.GetBuffer(), dest.GetBuffer() );
+ fprintf( fg, " basegame=\"default\"\n" );
+ break;
+ }
+ case GAME_WARSOW: {
fprintf( fg, " prefix=\".warsow\"\n" );
+ Str source = g_strAppPath.GetBuffer();
+ source += "installs/";
+ source += WARSOW_PACK;
+ Str dest = m_strEngine.GetBuffer();
+ CopyTree( source.GetBuffer(), dest.GetBuffer() );
fprintf( fg, " basegame=\"basewsw\"\n" );
break;
}
+ }
fprintf( fg, "/>\n" );
fclose( fg );
}
if ( stricmp( dirname, UFOAI_PACK ) == 0 ) {
m_availGames[ iGame++ ] = GAME_UFOAI;
}
+ if ( stricmp( dirname, Q2W_PACK ) == 0 ) {
+ m_availGames[ iGame++ ] = GAME_Q2W;
+ }
+ if ( stricmp( dirname, WARSOW_PACK ) == 0 ) {
+ m_availGames[ iGame++ ] = GAME_WARSOW;
+ }
}
}
#define Q3_PACK "Q3Pack"
#define URT_PACK "UrTPack"
#define UFOAI_PACK "UFOAIPack"
+#define Q2W_PACK "Q2WPack"
+#define WARSOW_PACK "WarsowPack"
class CGameInstall : public Dialog {
public:
GAME_Q3 = 1,
GAME_URT,
GAME_UFOAI,
+ GAME_Q2W,
GAME_WARSOW,
GAME_COUNT
};