summaryrefslogtreecommitdiff
path: root/source/cmd.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-01-14 18:51:02 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-01-14 18:51:02 +0000
commit6a9dd9138cd232eda47536599d79fa67b14f02e9 (patch)
tree4808f901cff8184f202a73becae587975f78440d /source/cmd.c
parent8c44753f1294c3ad4fbf64c8c3b390d06cdc99d9 (diff)
Added filtering cvars by flags to `cvarlist' command.
Write aliases to config.cfg too. Added S_ISREG check so FS_FOpenFile never opens directories on Unix.
Diffstat (limited to 'source/cmd.c')
-rw-r--r--source/cmd.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/cmd.c b/source/cmd.c
index e4526d3..ce3fc20 100644
--- a/source/cmd.c
+++ b/source/cmd.c
@@ -377,6 +377,16 @@ static void Cmd_UnAlias_f( void ) {
Z_Free( a );
}
+#ifndef DEDICATED_ONLY
+void Cmd_WriteAliases( fileHandle_t f ) {
+ cmdalias_t *a;
+
+ LIST_FOR_EACH( cmdalias_t, a, &cmd_alias, listEntry ) {
+ FS_FPrintf( f, "alias \"%s\" \"%s\"\n", a->name, a->value );
+ }
+}
+#endif
+
/*
=============================================================================
@@ -774,7 +784,7 @@ void Cmd_PrintHelp( const cmd_option_t *opt ) {
} else {
Q_strncpyz( buffer, opt->lo, sizeof( buffer ) );
}
- Com_Printf( "-%c | --%-16.16s : %s\n", opt->sh[0], buffer, opt->help );
+ Com_Printf( "-%c | --%-16.16s | %s\n", opt->sh[0], buffer, opt->help );
opt++;
}
Com_Printf( "\n" );