mirror of
https://github.com/blendogames/thirtyflightsofloving.git
synced 2024-11-14 16:40:57 +00:00
eb97af1598
Added GetFileList() to game function imports in misison pack DLL game.h.
29 lines
504 B
C
29 lines
504 B
C
|
|
#include "g_local.h"
|
|
|
|
|
|
void Svcmd_Test_f (void)
|
|
{
|
|
gi.cprintf (NULL, PRINT_HIGH, "Svcmd_Test_f()\n");
|
|
}
|
|
|
|
/*
|
|
=================
|
|
ServerCommand
|
|
|
|
ServerCommand will be called when an "sv" command is issued.
|
|
The game can issue gi.argc() / gi.argv() commands to get the rest
|
|
of the parameters
|
|
=================
|
|
*/
|
|
void ServerCommand (void)
|
|
{
|
|
char *cmd;
|
|
|
|
cmd = gi.argv(1);
|
|
if (Q_stricmp (cmd, "test") == 0)
|
|
Svcmd_Test_f ();
|
|
else
|
|
gi.cprintf (NULL, PRINT_HIGH, "Unknown server command \"%s\"\n", cmd);
|
|
}
|
|
|