mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Move slideshow temp file to external storage
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#define SLIDESHOW_FILE_NAME ".slideshow"
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user