2025-06-27 14:48:06 -05:00
|
|
|
/*#include <fs/fat16.h>
|
2025-06-17 15:50:07 -05:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
2025-06-27 14:48:06 -05:00
|
|
|
#include <fs/vfs.h>*/
|
2025-06-17 15:50:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
Note: the special FILE value -128 means the current directory.
|
|
|
|
-32 means stdin
|
|
|
|
-33 means stdout (which can be read)
|
|
|
|
*/
|
|
|
|
|
2025-06-27 14:48:06 -05:00
|
|
|
/*bool vfs_initialized = false;
|
2025-06-17 15:50:07 -05:00
|
|
|
ramfs_file_header_t* vfs_current_dir = NULL;
|
|
|
|
|
|
|
|
void vfs_init(void)
|
|
|
|
{
|
|
|
|
if (!vfs_initialized)
|
|
|
|
{
|
|
|
|
ramfs_init();
|
|
|
|
|
|
|
|
ramfs_make_root();
|
|
|
|
|
|
|
|
vfs_initialized = true;
|
|
|
|
vfs_current_dir = ramfs_get_root();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
*/
|