MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / Reload

Method Reload

Source/Graphics/sky.cpp:452–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452void Sky::Reload() {
453 char abs_path[kPathSize];
454 FindImagePath(dome_texture_name.c_str(), abs_path, kPathSize, kDataPaths | kModPaths);
455 int64_t check_modified = GetDateModifiedInt64(abs_path);
456 if (check_modified != -1 && check_modified > modified) {
457 live_updated = true;
458 QueueLoadResources();
459 }
460}
461
462void Sky::LightingChanged(bool terrain_exists) {
463 if (modified != -1) {

Callers 3

LiveUpdateFunction · 0.45
UpdateControlsMethod · 0.45
LiveUpdateCheckMethod · 0.45

Calls 3

FindImagePathFunction · 0.85
GetDateModifiedInt64Function · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected