Procházet zdrojové kódy

use default_allocator instead of local HeapAllocator

mikymod před 12 roky
rodič
revize
d265f5bb3f

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

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

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

@@ -89,10 +89,10 @@ public:
 						Filesystem();
 						Filesystem();
 						~Filesystem();
 						~Filesystem();
 
 
-	///
+	/// Makes available mount point @a mp
 	void				mount(MountPoint& mp);
 	void				mount(MountPoint& mp);
 
 
-	///
+	/// Makes unavailable mount point @a mp
 	void				umount(MountPoint& mp);
 	void				umount(MountPoint& mp);
 
 
 	/// Opens the file @a relative_path with the specified access @a mode
 	/// Opens the file @a relative_path with the specified access @a mode
@@ -102,17 +102,21 @@ public:
 	/// Closes a previously opened file @a stream
 	/// Closes a previously opened file @a stream
 	void				close(File* 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);
 	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);
 	const char*			os_path(const char* mount_point, const char* relative_path);
 
 
 private:
 private:
+	
 	/// Gets __first__ mount point fetchable by @a mount_point
 	/// Gets __first__ mount point fetchable by @a mount_point
 	MountPoint*			find_mount_point(const char* mount_point);				
 	MountPoint*			find_mount_point(const char* mount_point);				
 
 
 	// Disable copying
 	// Disable copying
 						Filesystem(const Filesystem&);
 						Filesystem(const Filesystem&);
-	Filesystem&			operator=(const Filesystem&);	
+	Filesystem&			operator=(const Filesystem&);
+		
 private:
 private:
 
 
 	HeapAllocator		m_allocator;
 	HeapAllocator		m_allocator;