Started on path resolution algorithm

- The algorithm will work once I am of better mind to deal with
raw C strings
- The resolution should look at each entry divided by '/'.
  if the entry is not there then we can quit early, however for
now I am mostly concerned with getting the names of directory entries
we would need to look for.
This commit is contained in:
2023-02-19 22:14:58 +01:00
parent dbb147e110
commit 94a2de3847
7 changed files with 210 additions and 16 deletions

View File

@ -1,5 +1,7 @@
#pragma once
#include <stdint.h>
#include "Path.h"
#define FS_FILE 0
#define FS_DIRECTORY 1
#define FS_INVALID 2
@ -73,4 +75,6 @@ extern PFILESYSTEM _filesystems[DEVICE_MAX];
public:
static void initialize();
static void ResolvePath(Path& path);
};