Просмотр исходного кода

use default_allocator instead of local HeapAllocator

mikymod 12 лет назад
Родитель
Сommit
d265f5bb3f
2 измененных файлов с 9 добавлено и 3 удалено
  1. 2 0
      engine/core/filesystem/Filesystem.cpp
  2. 7 3
      engine/core/filesystem/Filesystem.h

+ 2 - 0
engine/core/filesystem/Filesystem.cpp

@@ -31,6 +31,8 @@ OTHER DEALINGS IN THE SOFTWARE.
 #include "Memory.h"
 #include "Hash.h"
 #include "DiskMountPoint.h"
+#include "StringSetting.h"
+#include "MountPoint.h"
 
 
 namespace crown

+ 7 - 3
engine/core/filesystem/Filesystem.h

@@ -89,10 +89,10 @@ public:
 						Filesystem();
 						~Filesystem();
 
-	///
+	/// Makes available mount point @a mp
 	void				mount(MountPoint& mp);
 
-	///
+	/// Makes unavailable mount point @a mp
 	void				umount(MountPoint& mp);
 
 	/// Opens the file @a relative_path with the specified access @a mode
@@ -102,17 +102,21 @@ public:
 	/// Closes a previously opened file @a stream
 	void				close(File* stream);
 
+	/// Returns true if file @a relative_path exists in @a mount_point
 	bool				exists(const char* mount_point, const char* relative_path);
 
+	/// Returns path of file @a relative_path in @a mount_point
 	const char*			os_path(const char* mount_point, const char* relative_path);
 
 private:
+	
 	/// Gets __first__ mount point fetchable by @a mount_point
 	MountPoint*			find_mount_point(const char* mount_point);				
 
 	// Disable copying
 						Filesystem(const Filesystem&);
-	Filesystem&			operator=(const Filesystem&);	
+	Filesystem&			operator=(const Filesystem&);
+		
 private:
 
 	HeapAllocator		m_allocator;