From e718262c5e5163378ef92469db9b94908dccf12b Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 20 Nov 2024 08:42:45 +0100 Subject: ADD: Add CoreBoot header, need to add missing fields for specific platforms. --- dev/ZKAKit/src/NeFS+FileMgr.cc | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'dev/ZKAKit/src/NeFS+FileMgr.cc') diff --git a/dev/ZKAKit/src/NeFS+FileMgr.cc b/dev/ZKAKit/src/NeFS+FileMgr.cc index 2ad68115..5e9397e4 100644 --- a/dev/ZKAKit/src/NeFS+FileMgr.cc +++ b/dev/ZKAKit/src/NeFS+FileMgr.cc @@ -19,38 +19,39 @@ namespace Kernel NeFileSystemMgr::NeFileSystemMgr() { MUST_PASS(Detail::fs_init_newfs()); - fImpl = mm_new_class(); + + NeFSParser* fImpl; + mm_new_class(&fImpl); MUST_PASS(fImpl); - kcout << "We are done here... (NeFileSystemMgr).\r"; + kcout << "We are done allocating NeFSParser...\r"; } NeFileSystemMgr::~NeFileSystemMgr() { if (fImpl) { - kcout << "Destroying FS class (NeFS)...\r"; + kcout << "Destroying NeFSParser...\r"; - delete fImpl; - fImpl = nullptr; + mm_delete_class(&fImpl); } } /// @brief Removes a node from the filesystem. - /// @param fileName The filename + /// @param path The filename /// @return If it was deleted or not. - bool NeFileSystemMgr::Remove(const Char* fileName) + bool NeFileSystemMgr::Remove(_Input const Char* path) { - if (fileName == nullptr || *fileName == 0) + if (path == nullptr || *path == 0) return false; - return fImpl->RemoveCatalog(fileName); + return fImpl->RemoveCatalog(path); } /// @brief Creates a node with the specified. /// @param path The filename path. /// @return The Node pointer. - NodePtr NeFileSystemMgr::Create(const Char* path) + NodePtr NeFileSystemMgr::Create(_Input const Char* path) { return node_cast(fImpl->CreateCatalog(path)); } -- cgit v1.2.3