User Tools

Site Tools


en:tutorials:console:retrieving_changing_config_values

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:tutorials:retrieving_changing_config_values [2019/03/06 03:37 (5 years ago)] – Fixes and random list with orxConfig_GetString sausageen:tutorials:console:retrieving_changing_config_values [2020/08/31 05:44 (4 years ago)] (current) – ↷ Links adapted because of a move operation sausage
Line 59: Line 59:
 Please note that this only changes the value in memory. Your ''Level'' property in your config file stored on disk is not affected. When your application is restarted, the original values are loaded back from the configuration files in your filesystem. Please note that this only changes the value in memory. Your ''Level'' property in your config file stored on disk is not affected. When your application is restarted, the original values are loaded back from the configuration files in your filesystem.
  
-If you are interested in persisting values back to disk in a separate config file, see [[en:tutorials:save_games|Saving Game information to the Config]].+If you are interested in persisting values back to disk in a separate config file, see [[en:tutorials:config:save_games|Saving Game information to the Config]].
  
  
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/console/retrieving_changing_config_values.1551872263.txt.gz · Last modified: 2019/03/06 07:37 (5 years ago) (external edit)