SDK improvements (#352)
TactilityC additions for: - C randomization functions - Tactility app paths - Tactility locks
This commit is contained in:
committed by
GitHub
parent
6dc4f698c9
commit
c7621b5e4c
@@ -34,7 +34,7 @@ public:
|
||||
* The path will not end with a "/".
|
||||
* This is mainly used for core apps (system/boot/settings type).
|
||||
*/
|
||||
std::string getAssetsDirectory() const;
|
||||
std::string getAssetsPath() const;
|
||||
|
||||
/**
|
||||
* You should not store configuration data here.
|
||||
|
||||
@@ -28,7 +28,7 @@ std::string AppPaths::getUserDataPath(const std::string& childPath) const {
|
||||
}
|
||||
|
||||
|
||||
std::string AppPaths::getAssetsDirectory() const {
|
||||
std::string AppPaths::getAssetsPath() const {
|
||||
if (manifest.appLocation.isInternal()) {
|
||||
return std::format("{}{}/app/{}/assets", PARTITION_PREFIX, file::SYSTEM_PARTITION_NAME, manifest.appId);
|
||||
} else {
|
||||
@@ -38,7 +38,7 @@ std::string AppPaths::getAssetsDirectory() const {
|
||||
|
||||
std::string AppPaths::getAssetsPath(const std::string& childPath) const {
|
||||
assert(!childPath.starts_with('/'));
|
||||
return std::format("{}/{}", getAssetsDirectory(), childPath);
|
||||
return std::format("{}/{}", getAssetsPath(), childPath);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user