04_cs_steam_applaunch.patch from Debian (Jo Shields)
This commit is contained in:
parent
dd3d34abd6
commit
0cb7eb19a1
@ -2050,11 +2050,6 @@ static int q1_exec_generic (const struct condef *con, int forkit) {
|
||||
if (default_nocdaudio)
|
||||
argv[argi++] = "-nocdaudio";
|
||||
|
||||
if (con->gamedir) {
|
||||
argv[argi++] = "-game";
|
||||
argv[argi++] = con->gamedir;
|
||||
}
|
||||
|
||||
argv[argi++] = "+exec";
|
||||
argv[argi++] = EXEC_CFG;
|
||||
|
||||
@ -2529,8 +2524,10 @@ static int hl_exec (const struct condef *con, int forkit) {
|
||||
char *argv[32];
|
||||
int argi = 0;
|
||||
char *cmd;
|
||||
char** additional_args = NULL;
|
||||
struct game *g = &games[con->s->type];
|
||||
int retval;
|
||||
int i;
|
||||
|
||||
cmd = strdup_strip (g->cmd);
|
||||
|
||||
|
17
src/pref.c
17
src/pref.c
@ -2416,6 +2416,23 @@ static void add_custom_args_defaults (GtkWidget *widget, gpointer data) {
|
||||
add_custom_args_defaults2("AoCampaignLobbyGame", "-mod=AlienSwarm -log=AlienSwarm.log",UT2004_SERVER, data);
|
||||
break;
|
||||
|
||||
case HL2_SERVER:
|
||||
add_custom_args_defaults2("cstrike", "-applaunch 240",HL2_SERVER, data);
|
||||
add_custom_args_defaults2("dod", "-applaunch 300",HL2_SERVER, data);
|
||||
add_custom_args_defaults2("hl2mp", "-applaunch 320",HL2_SERVER, data);
|
||||
break;
|
||||
|
||||
case HL_SERVER:
|
||||
add_custom_args_defaults2("cstrike", "-applaunch 10",HL_SERVER, data);
|
||||
add_custom_args_defaults2("tfc", "-applaunch 20",HL_SERVER, data);
|
||||
add_custom_args_defaults2("dod", "-applaunch 30",HL_SERVER, data);
|
||||
add_custom_args_defaults2("dmc", "-applaunch 40",HL_SERVER, data);
|
||||
add_custom_args_defaults2("op4", "-applaunch 50",HL_SERVER, data);
|
||||
add_custom_args_defaults2("ricochet", "-applaunch 60",HL_SERVER, data);
|
||||
add_custom_args_defaults2("valve", "-applaunch 70",HL_SERVER, data);
|
||||
add_custom_args_defaults2("czero", "-applaunch 80",HL_SERVER, data);
|
||||
break;
|
||||
|
||||
default:
|
||||
dialog_ok (NULL, _("There are no defaults for this game"));
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user