]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - dpdefs/csprogsdefs.qc
Declare DP_QC_WHICHPACK in menudefs.qc and csprogsdefs.qc
[xonotic/darkplaces.git] / dpdefs / csprogsdefs.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