mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 15:00:46 +00:00
d07c2dbe54
* Add .fap extention, and Applications tab * Using new icon, renaming tab to Apps * Change tabs order * Add first ugly implementation of in-app icons in archive browser * Starting using FAPLoader callback * Getting all metafata from fap * add app filename fallback * using fap_loader_item_callback in archive_list_item_cb * FAP-Loader: removed minimal allocation * Removed strange code Co-authored-by: SG <who.just.the.doctor@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
27 lines
No EOL
535 B
C
27 lines
No EOL
535 B
C
#pragma once
|
|
#include <storage/storage.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct FapLoader FapLoader;
|
|
|
|
/**
|
|
* @brief Load name and icon from FAP file.
|
|
*
|
|
* @param path Path to FAP file.
|
|
* @param storage Storage instance.
|
|
* @param icon_ptr Icon pointer.
|
|
* @param item_name Application name.
|
|
* @return true if icon and name were loaded successfully.
|
|
*/
|
|
bool fap_loader_load_name_and_icon(
|
|
FuriString* path,
|
|
Storage* storage,
|
|
uint8_t** icon_ptr,
|
|
FuriString* item_name);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |