mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-25 03:29:58 -07:00
Revert "Embed assets in elf file (#2466)"
This reverts commit 4fd043398a.
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
|
||||
#define MAX_NAME_LENGTH 256
|
||||
#define MAX_EXT_LEN 16
|
||||
#define FILE_BUFFER_SIZE 512
|
||||
|
||||
#define TAG "StorageAPI"
|
||||
|
||||
@@ -252,26 +251,6 @@ bool storage_file_exists(Storage* storage, const char* path) {
|
||||
return exist;
|
||||
}
|
||||
|
||||
bool storage_file_copy_to_file(File* source, File* destination, uint32_t size) {
|
||||
uint8_t* buffer = malloc(FILE_BUFFER_SIZE);
|
||||
|
||||
while(size) {
|
||||
uint32_t read_size = size > FILE_BUFFER_SIZE ? FILE_BUFFER_SIZE : size;
|
||||
if(storage_file_read(source, buffer, read_size) != read_size) {
|
||||
break;
|
||||
}
|
||||
|
||||
if(storage_file_write(destination, buffer, read_size) != read_size) {
|
||||
break;
|
||||
}
|
||||
|
||||
size -= read_size;
|
||||
}
|
||||
|
||||
free(buffer);
|
||||
return size == 0;
|
||||
}
|
||||
|
||||
/****************** DIR ******************/
|
||||
|
||||
static bool storage_dir_open_internal(File* file, const char* path) {
|
||||
|
||||
Reference in New Issue
Block a user