Pārlūkot izejas kodu

add os_path to MountPoint interface

mikymod 12 gadi atpakaļ
vecāks
revīzija
57b2acf170
1 mainītis faili ar 7 papildinājumiem un 5 dzēšanām
  1. 7 5
      engine/core/filesystem/MountPoint.h

+ 7 - 5
engine/core/filesystem/MountPoint.h

@@ -83,18 +83,20 @@ struct MountPointEntry
 class MountPoint
 class MountPoint
 {
 {
 public:
 public:
-	inline				MountPoint(uint32_t type) : m_type(type) {}
+	inline						MountPoint(uint32_t type) : m_type(type) {}
 
 
 	/// Opens a file and returns a specific instance
 	/// Opens a file and returns a specific instance
-	virtual File*		open(const char* path, FileOpenMode mode) = 0;
+	virtual File*				open(const char* path, FileOpenMode mode) = 0;
 
 
 	/// Close file
 	/// Close file
-	virtual void		close(File* file) = 0;
+	virtual void				close(File* file) = 0;
 
 
 	/// Returns whether the @a relative_path exists
 	/// Returns whether the @a relative_path exists
-	virtual bool		exists(const char* relative_path) = 0;
+	virtual bool				exists(const char* relative_path) = 0;
 
 
-	uint32_t			type() const { return m_type; }
+	virtual const char*			os_path(const char* relative_path) = 0;
+
+	uint32_t					type() const { return m_type; }
 
 
 protected:
 protected: