]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Declare DP_QC_WHICHPACK in menudefs.qc and csprogsdefs.qc
authorbones_was_here <bones_was_here@xonotic.au>
Fri, 19 May 2023 10:07:14 +0000 (20:07 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 19 May 2023 10:07:14 +0000 (20:07 +1000)
It was only declared in dpextensions.qc

dpdefs/csprogsdefs.qc
dpdefs/menudefs.qc

index f4aa574ca4bf3ea3287dabfe1842c394eefa9c64..95f9beac5ff515c5c21f0123c461dbabbf3ed603 100644 (file)
@@ -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
index 63d2c6388e8447e90e46445abbe65506e93e074b..7282f4cdbbe4e59a609a4ecfe7fc42a37af330e4 100644 (file)
@@ -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