summaryrefslogtreecommitdiffhomepage
path: root/Private/KernelKit/FileManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Private/KernelKit/FileManager.hpp')
-rw-r--r--Private/KernelKit/FileManager.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/Private/KernelKit/FileManager.hpp b/Private/KernelKit/FileManager.hpp
index cfd06f07..a52daa7d 100644
--- a/Private/KernelKit/FileManager.hpp
+++ b/Private/KernelKit/FileManager.hpp
@@ -17,7 +17,10 @@
#pragma once
+#ifdef __USE_NEWFS__
#include <FSKit/NewFS.hxx>
+#endif // __USE_NEWFS__
+
#include <NewKit/ErrorID.hpp>
#include <NewKit/Ref.hpp>
#include <NewKit/Stream.hpp>
@@ -87,6 +90,7 @@ class IFilesystemManager {
/** @brief invalid position. (n-pos) */
#define kNPos (SizeT)(-1);
+#ifdef __USE_NEWFS__
/**
* @brief Based of IFilesystemManager, takes care of managing NewFS disks.
*/
@@ -148,12 +152,14 @@ class NewFilesystemManager final : public IFilesystemManager {
NewFSImplementation *fImpl{nullptr};
};
+#endif // ifdef __USE_NEWFS__
+
/**
* Usable FileStream
* @tparam Encoding file encoding (char, wchar_t...)
* @tparam FSClass Filesystem contract who takes care of it.
*/
-template <typename Encoding = char, typename FSClass = NewFilesystemManager>
+template <typename Encoding = char, typename FSClass = IFilesystemManager>
class FileStream final {
public:
explicit FileStream(const Encoding *path);