Move slideshow temp file to external storage

This commit is contained in:
Willy-JL
2023-03-28 02:03:12 +01:00
parent 6f8e625df1
commit 94f636ce21
4 changed files with 3 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
#pragma once
#define SLIDESHOW_FILE_NAME ".slideshow"

View File

@@ -5,7 +5,7 @@
#include "desktop_events.h"
#include "../helpers/slideshow_filename.h"
#define SLIDESHOW_FS_PATH INT_PATH(SLIDESHOW_FILE_NAME)
#define SLIDESHOW_FS_PATH EXT_PATH(".slideshow")
typedef struct DesktopSlideshowView DesktopSlideshowView;

View File

@@ -4,7 +4,7 @@
#include <furi.h>
#include <furi_hal.h>
#include <storage/storage.h>
#include <desktop/helpers/slideshow_filename.h>
#include <desktop/views/desktop_view_slideshow.h>
#include <toolbox/path.h>
#include <update_util/dfu_file.h>
#include <update_util/lfs_backup.h>
@@ -216,7 +216,7 @@ static bool update_task_post_update(UpdateTask* update_task) {
if(storage_common_copy(
update_task->storage,
furi_string_get_cstr(tmp_path),
INT_PATH(SLIDESHOW_FILE_NAME)) != FSE_OK) {
SLIDESHOW_FS_PATH) != FSE_OK) {
// actually, not critical
}
furi_string_free(tmp_path);

View File

@@ -2,7 +2,6 @@
#include <toolbox/tar/tar_archive.h>
#include <desktop/helpers/slideshow_filename.h>
#include <notification/notification_settings_filename.h>
#define LFS_BACKUP_DEFAULT_LOCATION EXT_PATH(LFS_BACKUP_DEFAULT_FILENAME)
@@ -15,7 +14,6 @@ static void backup_name_converter(FuriString* filename) {
/* Filenames are already prefixed with '.' */
const char* const names[] = {
NOTIFICATION_SETTINGS_FILE_NAME,
SLIDESHOW_FILE_NAME,
};
for(size_t i = 0; i < COUNT_OF(names); i++) {