| 29 | } |
| 30 | |
| 31 | bool 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 | } |
no test coverage detected