X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcommand%2Fgeneric.qh;h=68aa0ae88af0d1b0b1deafc9eee5f46735da808a;hb=d77d35f12d537628d021b946d5fd6aa20734042d;hp=4391555c6cabe2c3828bed9d4e9d9b85c15bdf8a;hpb=616650bb18362024afeed71fed91d33dc1708d09;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/command/generic.qh b/qcsrc/common/command/generic.qh index 4391555c6..68aa0ae88 100644 --- a/qcsrc/common/command/generic.qh +++ b/qcsrc/common/command/generic.qh @@ -1,19 +1,40 @@ +#pragma once + +#include + // ========================================================= // Declarations for common command code, written by Samual // Last updated: December 28th, 2011 // ========================================================= +void GenericCommand_macro_help(); + +float GenericCommand_macro_command(int argc, string command); + +float GenericCommand_macro_usage(int argc); + +void GenericCommand_macro_write_aliases(float fh); + // Used by other game command systems for common commands, -// and it returns true if handled, false if not. +// and it returns true if handled, false if not. // Note: It tokenizes its input, so be careful! float GenericCommand(string command); // Returns command prefix specific for whatever program it is compiled in -string GetProgramCommandPrefix(void); +#ifdef SVQC + #define GetProgramCommandPrefix() "sv_cmd" +#elif defined(CSQC) + #define GetProgramCommandPrefix() "cl_cmd" +#elif defined(MENUQC) + #define GetProgramCommandPrefix() "menu_cmd" +#endif // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file #define CMD_Write(s) fputs(fh, s) #define CMD_Write_Alias(execute,command,description) CMD_Write(sprintf("alias %-20s \"%-13s %-20s ${* ?}\" // %s\n", command, execute, command, description)) void GenericCommand_macro_write_aliases(float fh); -void Curl_URI_Get_Callback(float id, float status, string data); +void Curl_URI_Get_Callback(int id, float status, string data); +int curl_uri_get_pos; +float curl_uri_get_exec[URI_GET_CURL_END - URI_GET_CURL + 1]; +string curl_uri_get_cvar[URI_GET_CURL_END - URI_GET_CURL + 1];