diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-03-05 20:14:36 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-03-05 20:14:36 +0000 |
commit | bf0e48bb73e2d6846e15335e3625290d1f9ebc52 (patch) | |
tree | e2804860de7d1b59c263ec04f81044b35a7369f2 /source/cl_demo.c | |
parent | 856cdd0f2fafeaa31c7398c8877180c68364842d (diff) |
Rewrote autocompletion engine.
Added `con_notifylines' variable.
Do not allow chat beeps to overlap.
Diffstat (limited to 'source/cl_demo.c')
-rw-r--r-- | source/cl_demo.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source/cl_demo.c b/source/cl_demo.c index a505058..51dca08 100644 --- a/source/cl_demo.c +++ b/source/cl_demo.c @@ -646,12 +646,10 @@ static void CL_PlayDemo_f( void ) { } } -static const char *CL_PlayDemo_g( const char *partial, int argnum, int state ) { +static void CL_Demo_c( genctx_t *ctx, int argnum ) { if( argnum == 1 ) { - return Com_FileNameGeneratorByFilter( "demos", "*.dm2;*.dm2.gz", - partial, qfalse, state ); + FS_File_g( "demos", "*.dm2;*.dm2.gz", FS_SEARCH_SAVEPATH | FS_SEARCH_BYFILTER | 0x80000000, ctx ); } - return NULL; } static void CL_ParseInfoString( demoInfo_t *info, int clientNum, int index, const char *string ) { @@ -793,8 +791,8 @@ void CL_DemoFrame( void ) { } static const cmdreg_t c_demo[] = { - { "demo", CL_PlayDemo_f, CL_PlayDemo_g }, - { "record", CL_Record_f, CL_PlayDemo_g }, + { "demo", CL_PlayDemo_f, CL_Demo_c }, + { "record", CL_Record_f, CL_Demo_c }, { "stop", CL_Stop_f }, { "suspend", CL_Suspend_f }, |