X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=dpdefs%2Fmenudefs.qc;h=36cedec4f2fdfd1b96e935f1f5f91b84b230fd53;hb=0cf91106f5322e5febeea043c0280cf245573f30;hp=8caab4a9279e6afec354b94d2f43236be0564c25;hpb=f348d973d549aa478ca3a088dee37b8b75e6a3f5;p=xonotic%2Fdarkplaces.git diff --git a/dpdefs/menudefs.qc b/dpdefs/menudefs.qc index 8caab4a9..36cedec4 100644 --- a/dpdefs/menudefs.qc +++ b/dpdefs/menudefs.qc @@ -434,7 +434,7 @@ float CVAR_TYPEFLAG_READONLY = 32; //DP_QC_STRINGBUFFERS //idea: ?? -//darkplaces implementation: LordHavoc +//darkplaces implementation: LadyHavoc //functions to manage string buffer objects - that is, arbitrary length string arrays that are handled by the engine float() buf_create = #440; void(float bufhandle) buf_del = #441; @@ -450,7 +450,7 @@ void(float bufhandle, string pattern, string antipattern) buf_cvarlist = #517; //DP_QC_STRING_CASE_FUNCTIONS //idea: Dresk -//darkplaces implementation: LordHavoc / Dresk +//darkplaces implementation: LadyHavoc / Dresk //builtin definitions: string(string s) strtolower = #480; // returns the passed in string in pure lowercase form string(string s) strtoupper = #481; // returns the passed in string in pure uppercase form @@ -538,9 +538,19 @@ float FIELD_FUNCTION = 6; //function definitions: void coverage() = #642; // Reports a coverage event. The engine counts for each of the calls to this builtin whether it has been called. +//DP_QC_FS_SEARCH_PACKFILE +//idea: Mario +//darkplaces implementation: Mario +//builtin definitions: +float(string pattern, float caseinsensitive, float quiet, string packfile) search_packfile_begin = #444; +//description: +//extension to search_begin (DP_QC_FS_SEARCH), performs a filename search with the specified pattern (for example "maps/*.bsp") and stores the results in a search slot (minimum of 128 supported by any engine with this extension), the other functions take this returned search slot number, be sure to search_free when done (they are also freed on progs reload). +//only searches for files within the specified packfile, which is expected to match the results of whichpack(). + // assorted undocumented extensions string(string, float) netaddress_resolve = #625; string(string search, string replace, string subject) strreplace = #484; +string(string search, string replace, string subject) strireplace = #485; string(float uselocaltime, string format, ...) strftime = #478; float(string s) tokenize_console = #514; float(float i) argv_start_index = #515;