MCPcopy Create free account
hub / github.com/cinder/Cinder / reload

Method reload

samples/FallingGears/src/Config.cpp:19–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void Config::reload()
20{
21 try {
22 mData = loadJson( app::loadAsset( "config.json" ) );
23
24 loadGearData();
25
26 CI_LOG_V( "successfully loaded config.json" );
27 }
28 catch( Exception &exc ) {
29 LOG_EXCEPTION( exc );
30 }
31}
32
33float Config::getDescentSpeed() const
34{

Callers 1

keyDownMethod · 0.45

Calls 2

loadJsonFunction · 0.85
loadAssetFunction · 0.85

Tested by

no test coverage detected