mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-27 13:13:07 +00:00
056446dfed
* storage: added global #defines for /int, /ext & /any * storage: introduced PATH_EXT, PATH_INT& PATH_ANY macros * core apps: moved hardcoded config files names to separate headers; prefixed them with "."; updater: added file name migration to new naming convention on backup extraction * storage: fixed storage_merge_recursive handling of complex directory structures; storage_move_to_sd: changed data migration logic to all non-dot files & all folders * core: added macro aliases for core record names * Bumped protobuf commit pointer * storage: reserved 5 pages in /int; denying write&creation of non-dot files when running out of free space Co-authored-by: あく <alleteam@gmail.com>
14 lines
515 B
C
14 lines
515 B
C
#pragma once
|
|
|
|
#include <storage/storage.h>
|
|
|
|
#define ARCHIVE_FAV_PATH ANY_PATH("favorites.txt")
|
|
#define ARCHIVE_FAV_TEMP_PATH ANY_PATH("favorites.tmp")
|
|
|
|
uint16_t archive_favorites_count(void* context);
|
|
bool archive_favorites_read(void* context);
|
|
bool archive_favorites_delete(const char* format, ...);
|
|
bool archive_is_favorite(const char* format, ...);
|
|
bool archive_favorites_rename(const char* src, const char* dst);
|
|
void archive_add_to_favorites(const char* file_path);
|
|
void archive_favorites_save(void* context);
|