]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cmd.c
cvar: r_texture_dds_load_dxt1_noalpha; if set, DXT1 alpha detection is disabled,...
[xonotic/darkplaces.git] / cmd.c
diff --git a/cmd.c b/cmd.c
index 47e40a4faa343c6b2faa2def596e1ffa13496cb3..19da28e1b21f1b161f6771b842b2ebc54c1a3897 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -464,7 +464,11 @@ static void Cmd_Exec_f (void)
 
        filename = Cmd_Argv(1);
        if (!strcmp(filename, "config.cfg"))
+       {
                filename = CONFIGFILENAME;
+               if (COM_CheckParm("-noconfig"))
+                       return; // don't execute config.cfg
+       }
 
        f = (char *)FS_LoadFile (filename, tempmempool, false, NULL);
        if (!f)
@@ -1185,6 +1189,7 @@ void Cmd_Init_Commands (void)
        Cmd_AddCommand ("wait", Cmd_Wait_f, "make script execution wait for next rendered frame");
        Cmd_AddCommand ("set", Cvar_Set_f, "create or change the value of a console variable");
        Cmd_AddCommand ("seta", Cvar_SetA_f, "create or change the value of a console variable that will be saved to config.cfg");
+       Cmd_AddCommand ("unset", Cvar_Del_f, "delete a cvar (does not work for static ones like _cl_name, or read-only ones)");
 #ifdef FILLALLCVARSWITHRUBBISH
        Cmd_AddCommand ("fillallcvarswithrubbish", Cvar_FillAll_f, "fill all cvars with a specified number of characters to provoke buffer overruns");
 #endif /* FILLALLCVARSWITHRUBBISH */