MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / loadBootSettings

Function loadBootSettings

Tactility/Source/settings/BootSettings.cpp:31–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31bool loadBootSettings(BootSettings& properties) {
32 const std::string path = getPropertiesFilePath();
33 if (!file::loadPropertiesFile(path, [&properties](auto& key, auto& value) {
34 if (key == PROPERTIES_KEY_AUTO_START_APP_ID) {
35 properties.autoStartAppId = value;
36 } else if (key == PROPERTIES_KEY_LAUNCHER_APP_ID) {
37 properties.launcherAppId = value;
38 }
39 })) {
40 LOG_I(TAG, "No settings at %s", path.c_str());
41 return false;
42 }
43
44 return true;
45}
46
47}

Callers 2

onCreateMethod · 0.85
getLauncherAppIdMethod · 0.85

Calls 2

getPropertiesFilePathFunction · 0.85
loadPropertiesFileFunction · 0.85

Tested by

no test coverage detected