Przeglądaj źródła

Implement is_file and is_directory for ApkFilesystem

Daniele Bartolini 12 lat temu
rodzic
commit
cee5dc1c49

+ 12 - 0
engine/os/android/ApkFilesystem.cpp

@@ -56,6 +56,18 @@ void ApkFilesystem::close(File* file)
 	CE_DELETE(default_allocator(), file);
 	CE_DELETE(default_allocator(), file);
 }
 }
 
 
+//-----------------------------------------------------------------------------
+bool ApkFilesystem::is_directory(const char* path)
+{
+	return false;
+}
+
+//-----------------------------------------------------------------------------
+bool ApkFilesystem::is_file(const char* path)
+{
+	return false;
+}
+
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 void ApkFilesystem::create_directory(const char* /*path*/)
 void ApkFilesystem::create_directory(const char* /*path*/)
 {
 {

+ 6 - 0
engine/os/android/ApkFilesystem.h

@@ -47,6 +47,12 @@ public:
 	/// @copydoc Filesystem::close()
 	/// @copydoc Filesystem::close()
 	void close(File* file);
 	void close(File* file);
 
 
+	/// Returns always false under Android.
+	bool is_directory(const char* path);
+
+	/// Returns always false under Android.
+	bool is_file(const char* path);
+
 	/// Stub method, assets folder is read-only.
 	/// Stub method, assets folder is read-only.
 	void create_directory(const char* path);
 	void create_directory(const char* path);