Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
developers-guide [2019/02/02 11:16]
wolfmanjm [When to read configuration]
developers-guide [2019/02/02 11:18]
wolfmanjm [Checksums]
Line 26: Line 26:
  
 <code cpp> <code cpp>
-void MyModule::on_config_reload(void* argument){+void MyModule::on_config_loaded(void* argument){
  // Config does not actually work like that, this is just an hypothetical example to explain, Don't do it like this.  // Config does not actually work like that, this is just an hypothetical example to explain, Don't do it like this.
  this->​maximum_power = this->​kernel->​config->​value("​maximum_death_star_hourly_power_consumption"​)->​as_number();​  this->​maximum_power = this->​kernel->​config->​value("​maximum_death_star_hourly_power_consumption"​)->​as_number();​
Line 60: Line 60:
 #define maximum_death_star_hourly_power_consumption_checksum CHECKSUM("​maximum_death_star_hourly_power_consumption"​) ​ #define maximum_death_star_hourly_power_consumption_checksum CHECKSUM("​maximum_death_star_hourly_power_consumption"​) ​
  
-void MyModule::on_config_reload(void* argument){+void MyModule::on_config_loaded(void* argument){
  // Config works more like this  // Config works more like this
  this->​maximum_power = this->​kernel->​config->​value(maximum_death_star_hourly_power_consumption_checksum)->​as_number();​  this->​maximum_power = this->​kernel->​config->​value(maximum_death_star_hourly_power_consumption_checksum)->​as_number();​