- Move various settings to `/data/settings` and `/sdcard/settings` - Fix for `Gui` and `Statusbar` errors on startup (LVGL start) - Implement Development service settings as properties file - Rename `service::findManifestId()` to `service::findManifestById()` - Renamed various classes like `BootProperties` to `BootSettings` - Renamed `settings.properties` to `system.properties`. Code was moved to `settings` namespace/folder - `DevelopmentSettings` is now in `settings` namespace/folder (moved from service)
25 lines
686 B
C++
25 lines
686 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace tt::settings {
|
|
|
|
struct BootSettings {
|
|
/** App to start automatically after the splash screen. */
|
|
std::string launcherAppId;
|
|
/** App to start automatically from the launcher screen. */
|
|
std::string autoStartAppId;
|
|
};
|
|
|
|
/**
|
|
* Load the boot properties file from the relevant file location(s).
|
|
* It will first attempt to load them from the SD card and if no file was found,
|
|
* then it will try to load the one from the data mount point.
|
|
*
|
|
* @param[out] properties the resulting properties
|
|
* @return true when the properties were successfully loaded and the result was set
|
|
*/
|
|
bool loadBootSettings(BootSettings& properties);
|
|
|
|
}
|