User Tools

Site Tools


en:tutorials:retrieving_changing_config_values

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:tutorials:retrieving_changing_config_values [2019/03/06 11:37 (7 weeks ago)]
sausage Fixes and random list with orxConfig_GetString
en:tutorials:retrieving_changing_config_values [2019/03/25 14:29 (4 weeks ago)] (current)
iarwain Fixed parameter to orxConfig_GetListString call
Line 82: Line 82:
 </​code>​ </​code>​
  
-You can also choose a random value from the list by supplying ​an orxNULL value instead of an index int:+You can also choose a random value from the list by supplying ​a -1 index value:
  
 <code c> <code c>
  orxConfig_PushSection("​Runtime"​);​  orxConfig_PushSection("​Runtime"​);​
- const orxSTRING value = orxConfig_GetListString("​Titles", ​orxNULL);+ const orxSTRING value = orxConfig_GetListString("​Titles", ​-1);
  orxConfig_PopSection();​  orxConfig_PopSection();​
 </​code>​ </​code>​
en/tutorials/retrieving_changing_config_values.txt · Last modified: 2019/03/25 14:29 (4 weeks ago) by iarwain