mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Move expansion settings to SD card
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
|
||||
#include "expansion_settings_filename.h"
|
||||
|
||||
#define EXPANSION_SETTINGS_PATH INT_PATH(EXPANSION_SETTINGS_FILE_NAME)
|
||||
#define EXPANSION_SETTINGS_VERSION (0)
|
||||
#define EXPANSION_SETTINGS_MAGIC (0xEA)
|
||||
|
||||
|
||||
@@ -6,4 +6,5 @@
|
||||
/**
|
||||
* @brief File name used for expansion settings.
|
||||
*/
|
||||
#define EXPANSION_SETTINGS_FILE_NAME ".expansion.settings"
|
||||
#define EXPANSION_SETTINGS_OLD_PATH INT_PATH(".expansion.settings")
|
||||
#define EXPANSION_SETTINGS_PATH CFG_PATH("expansion.settings")
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <notification/notification_app.h>
|
||||
#include <dolphin/helpers/dolphin_state.h>
|
||||
#include <applications/main/u2f/u2f_data.h>
|
||||
#include <expansion/expansion_settings_filename.h>
|
||||
#include <applications/main/archive/helpers/archive_favorites.h>
|
||||
#include <xtreme/namespoof.h>
|
||||
#include <xtreme/xtreme.h>
|
||||
@@ -65,6 +66,8 @@ void flipper_migrate_files() {
|
||||
storage_common_remove(storage, POWER_SETTINGS_OLD_PATH);
|
||||
storage_common_copy(storage, BT_KEYS_STORAGE_OLD_PATH, BT_KEYS_STORAGE_PATH);
|
||||
storage_common_remove(storage, BT_KEYS_STORAGE_OLD_PATH);
|
||||
storage_common_copy(storage, EXPANSION_SETTINGS_OLD_PATH, EXPANSION_SETTINGS_PATH);
|
||||
storage_common_remove(storage, EXPANSION_SETTINGS_OLD_PATH);
|
||||
// storage_common_copy(storage, NOTIFICATION_SETTINGS_OLD_PATH, NOTIFICATION_SETTINGS_PATH); // Not compatible anyway
|
||||
storage_common_remove(storage, NOTIFICATION_SETTINGS_OLD_PATH);
|
||||
// Ext -> Int
|
||||
|
||||
Reference in New Issue
Block a user