summaryrefslogtreecommitdiffhomepage
path: root/Private/Source/NewFS.cxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-04 10:59:24 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-04 10:59:24 +0100
commite2bbec91d70847cc5a2ff67eb84ca4a3c2d03e85 (patch)
tree1e7fec7c232b0c750157007113ce8f86d43b7e76 /Private/Source/NewFS.cxx
parentaff54fd3dc6855b62c047f126c6fe20ca717ee0f (diff)
Kernel: Depend less on NewFS, add support for FileSystem protocol in
NewBoot. Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/Source/NewFS.cxx')
-rw-r--r--Private/Source/NewFS.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Private/Source/NewFS.cxx b/Private/Source/NewFS.cxx
index 114c1e6b..2cb4fae9 100644
--- a/Private/Source/NewFS.cxx
+++ b/Private/Source/NewFS.cxx
@@ -7,9 +7,10 @@
* ========================================================
*/
-#include <FSKit/NewFS.hxx>
#include <KernelKit/FileManager.hpp>
+#ifdef __USE_NEWFS__
+
namespace HCore {
NewFilesystemManager::NewFilesystemManager() = default;
@@ -40,4 +41,10 @@ NodePtr NewFilesystemManager::CreateDirectory(const char* path) {
NodePtr NewFilesystemManager::CreateAlias(const char* path) {
return node_cast(fImpl->CreateCatalog(path, 0, kCatalogKindAlias));
}
+
+const char* NewFilesystemHelper::Root() { return kFilesystemRoot; }
+const char* NewFilesystemHelper::UpDir() { return kFilesystemUpDir; }
+const char NewFilesystemHelper::Separator() { return kFilesystemSeparator; }
} // namespace HCore
+
+#endif // ifdef __USE_NEWFS__