initial COD: World at War support

master
Thomas Debesse 2018-04-02 03:40:53 +02:00
parent a645a02d87
commit ff4e58f4a1
4 changed files with 68 additions and 0 deletions

View File

@ -158,6 +158,20 @@
<update_prefs>q3_update_prefs_common</update_prefs>
<main_mod>main</main_mod>
</game>
<game>
<base>Q3_SERVER</base>
<type>CODWAW_SERVER</type>
<name>Call of Duty: World at War</name>
<default_port>28960</default_port>
<id>CODWAWS</id>
<qstat_str>WAWS</qstat_str>
<qstat_option>-waws</qstat_option>
<icon>codwaw.xpm</icon>
<config_is_valid>config_is_valid_generic</config_is_valid>
<arch_identifier>NULL</arch_identifier>
<prefs_load>q3_prefs_load_common</prefs_load>
<update_prefs>q3_update_prefs_common</update_prefs>
</game>
<game>
<base>Q2_SERVER</base>
<type>DDAY_SERVER</type>

View File

@ -173,6 +173,8 @@ static char *builtin_masters_update_info[] = {
*
*/
"ADD CODWAWS http://www.qtracker.com/server_list_details.php?game=callofdutyworldatwar qtracker.com",
// added 2018-03-31
"ADD AQ2S http://q2servers.com/?g=action&raw=1 q2servers.com",
@ -421,6 +423,7 @@ static char *builtin_masters_update_info[] = {
"ADD CODUOS lan://255.255.255.255 LAN",
"ADD COD2S lan://255.255.255.255 LAN",
"ADD COD4S lan://255.255.255.255 LAN",
"ADD CODWAWS lan://255.255.255.255 LAN",
"ADD DDAYS lan://255.255.255.255 LAN",
"ADD DM3S lan://255.255.255.255 LAN",
"ADD EFS lan://255.255.255.255 LAN",

View File

@ -383,6 +383,16 @@ static struct q3_common_prefs_s cod4_prefs = {
.defproto = "6",
};
static const char* codwaw_masterprotocols[] = {
"101 - current",
NULL
};
static struct q3_common_prefs_s codwaw_prefs = {
.protocols = codwaw_masterprotocols,
.defproto = "101",
};
static const char* jk2_masterprotocols[] = {
"16 - v1.04",
"15 - v1.02",
@ -3201,6 +3211,7 @@ static struct q3_common_prefs_s* get_pref_widgets_for_game(enum server_type type
case CODUO_SERVER: return &coduo_prefs;
case COD2_SERVER: return &cod2_prefs;
case COD4_SERVER: return &cod4_prefs;
case CODWAW_SERVER: return &codwaw_prefs;
case JK2_SERVER: return &jk2_prefs;
case JK3_SERVER: return &jk3_prefs;
case NEXUIZ_SERVER: return &nexuiz_prefs;
@ -4352,6 +4363,7 @@ static struct generic_prefs* new_generic_prefs (void) {
new_genprefs[CODUO_SERVER].add_options_to_notebook = add_q3_options_to_notebook;
new_genprefs[COD2_SERVER].add_options_to_notebook = add_q3_options_to_notebook;
new_genprefs[COD4_SERVER].add_options_to_notebook = add_q3_options_to_notebook;
new_genprefs[CODWAW_SERVER].add_options_to_notebook = add_q3_options_to_notebook;
new_genprefs[JK2_SERVER].add_options_to_notebook = add_q3_options_to_notebook;
new_genprefs[JK3_SERVER].add_options_to_notebook = add_q3_options_to_notebook;
new_genprefs[SOF2S_SERVER].add_options_to_notebook = add_q3_options_to_notebook;

39
src/xpm/codwaw.xpm Normal file
View File

@ -0,0 +1,39 @@
/* XPM */
static char * codwaw_xpm[] = {
"16 16 20 1",
" c #4D5D76",
". c #76765A",
"+ c #C3C2A3",
"@ c #4D4D49",
"# c #AFA996",
"$ c #D5CCB2",
"% c #383838",
"& c #B9B79F",
"* c #292929",
"= c #424242",
"- c #A19F8F",
"; c #E5DEC9",
"> c #7A7A56",
", c #928F84",
"' c #6D6D63",
") c #5C5C57",
"! c #82825A",
"~ c #4D4D4D",
"{ c #000000",
"] c #495971",
" ",
" . ",
" +@ ",
" #$% ",
" $&* ",
" $&@= ",
" -&;+$;#@>&&$- ",
" =@,+;$'##,% ",
" *%@.;&)*% ",
" @!,),)= ~ ",
"{ { {&#))#'{ { {",
"{ { {$@{{{!{ { {",
"{ { {){ {+{ { {",
"{ {){%{ ]{,{ { {",
" {{{ { {{ ){{{ ",
" { { {{ { { { "};