[FEATURE UPDATE]
I changed out the memory based fat32 filesystem for one that runs on a 512mb disk img made during the make command (only get's made if the disk.img file is nonexistent) allowing files to be permanent.

Also all these files combined are 67 files.. just fyi.
This commit is contained in:
Chris
2026-02-07 01:29:54 +01:00
parent d2e7808cfa
commit cc0db5de9d
67 changed files with 1057 additions and 354 deletions

View File

@@ -2,6 +2,7 @@
#include "graphics.h"
#include "fat32.h"
#include "wm.h"
#include "memory_manager.h"
#include "editor.h"
#include "markdown.h"
#include <stdbool.h>
@@ -278,7 +279,9 @@ static void explorer_set_folder_color(const char *folder_path, uint32_t color) {
static void explorer_load_directory(const char *path) {
explorer_strcpy(current_path, path);
FAT32_FileInfo entries[EXPLORER_MAX_FILES];
FAT32_FileInfo *entries = (FAT32_FileInfo*)kmalloc(EXPLORER_MAX_FILES * sizeof(FAT32_FileInfo));
if (!entries) return;
int count = fat32_list_directory(path, entries, EXPLORER_MAX_FILES);
item_count = 0;
@@ -306,6 +309,7 @@ static void explorer_load_directory(const char *path) {
item_count++;
}
kfree(entries);
selected_item = -1;
}