[nexuiz-commits] r7372 - trunk/data/qcsrc/menu
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Aug 6 15:20:29 EDT 2009
Author: div0
Date: 2009-08-06 15:20:29 -0400 (Thu, 06 Aug 2009)
New Revision: 7372
Modified:
trunk/data/qcsrc/menu/mbuiltin.qh
trunk/data/qcsrc/menu/menu.qc
Log:
if developer is set, list all game dirs using the newly added DP extension
Modified: trunk/data/qcsrc/menu/mbuiltin.qh
===================================================================
--- trunk/data/qcsrc/menu/mbuiltin.qh 2009-08-06 15:05:24 UTC (rev 7371)
+++ trunk/data/qcsrc/menu/mbuiltin.qh 2009-08-06 19:20:29 UTC (rev 7372)
@@ -343,3 +343,5 @@
float(string s) tokenize_console = #514;
float(float i) argv_start_index = #515;
float(float i) argv_end_index = #516;
+
+string(float, float) getgamedirinfo = #626;
Modified: trunk/data/qcsrc/menu/menu.qc
===================================================================
--- trunk/data/qcsrc/menu/menu.qc 2009-08-06 15:05:24 UTC (rev 7371)
+++ trunk/data/qcsrc/menu/menu.qc 2009-08-06 19:20:29 UTC (rev 7372)
@@ -22,6 +22,20 @@
{
dprint_load();
check_unacceptable_compiler_bugs();
+
+ // list all game dirs (TEST)
+ if(cvar("developer"))
+ {
+ float i;
+ string s;
+ for(i = 0; ; ++i)
+ {
+ s = getgamedirinfo(i, 0);
+ if not(s)
+ break;
+ print(s, ": ", getgamedirinfo(i, 1));
+ }
+ }
}
void UpdateConWidthHeight()
More information about the nexuiz-commits
mailing list