Unload asset pack icons for external apps

This commit is contained in:
Willy-JL
2023-05-28 17:04:33 +01:00
parent 33b8519202
commit 7051917d36
4 changed files with 54 additions and 11 deletions

View File

@@ -13,6 +13,7 @@
#include <loader/firmware_api/firmware_api.h>
#include <storage/storage_processing.h>
#include <applications/main/archive/helpers/favorite_timeout.h>
#include <xtreme/private.h>
#define TAG "FapLoader"
@@ -243,6 +244,9 @@ static void fap_loader_free(FapLoader* loader) {
}
int32_t fap_loader_app(char* p) {
size_t start = furi_get_tick();
XTREME_ASSETS_FREE();
FURI_LOG_I("Assets", "Freed in %ums", (size_t)(furi_get_tick() - start));
FapLoader* loader;
process_favorite_launch(&p);
if(p) {
@@ -262,5 +266,9 @@ int32_t fap_loader_app(char* p) {
}
fap_loader_free(loader);
start = furi_get_tick();
XTREME_ASSETS_LOAD();
FURI_LOG_I("Assets", "Loaded in %ums", (size_t)(furi_get_tick() - start));
return 0;
}