From: bones_was_here Date: Fri, 19 May 2023 10:07:14 +0000 (+1000) Subject: Declare DP_QC_WHICHPACK in menudefs.qc and csprogsdefs.qc X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=07eae95c847d9380de16061def3bf00c74833ced;p=xonotic%2Fdarkplaces.git Declare DP_QC_WHICHPACK in menudefs.qc and csprogsdefs.qc It was only declared in dpextensions.qc --- diff --git a/dpdefs/csprogsdefs.qc b/dpdefs/csprogsdefs.qc index f4aa574c..95f9beac 100644 --- a/dpdefs/csprogsdefs.qc +++ b/dpdefs/csprogsdefs.qc @@ -1183,6 +1183,16 @@ float CVAR_TYPEFLAG_READONLY = 32; //When caseinsensitive is set, the CRC is calculated of the lower cased string. float(float caseinsensitive, string s, ...) crc16 = #494; +//DP_QC_WHICHPACK +//idea: divVerent +//darkplaces implementation: divVerent +//builtin definitions: +string(string filename) whichpack = #503; +//description: +//for files in a pak/pk3/whatever, returns the pack's file name in FRIK_FILE name space. +//for physical files, returns "". +//in case of error, returns string_null. + //DP_QC_URI_ESCAPE //idea: divVerent //darkplaces implementation: divVerent diff --git a/dpdefs/menudefs.qc b/dpdefs/menudefs.qc index 63d2c638..7282f4cd 100644 --- a/dpdefs/menudefs.qc +++ b/dpdefs/menudefs.qc @@ -477,6 +477,16 @@ string(string digest, string data, ...) digest_hex = #639; //if the given digest is not supported, string_null is returned //the digest string is matched case sensitively, use "MD4", not "md4"! +//DP_QC_WHICHPACK +//idea: divVerent +//darkplaces implementation: divVerent +//builtin definitions: +string(string filename) whichpack = #503; +//description: +//for files in a pak/pk3/whatever, returns the pack's file name in FRIK_FILE name space. +//for physical files, returns "". +//in case of error, returns string_null. + //DP_QC_URI_ESCAPE //idea: div0 //darkplaces implementation: div0