mirror of
https://github.com/JannisHeydemann/BoredOS.git
synced 2026-05-30 02:16:58 +00:00
V1.40
[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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user