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

Implement is_file and is_directory for ApkFilesystem

Daniele Bartolini 12 лет назад
Родитель
Сommit
cee5dc1c49
2 измененных файлов с 18 добавлено и 0 удалено
  1. 12 0
      engine/os/android/ApkFilesystem.cpp
  2. 6 0
      engine/os/android/ApkFilesystem.h

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

@@ -56,6 +56,18 @@ void ApkFilesystem::close(File* 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*/)
 {

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

@@ -47,6 +47,12 @@ public:
 	/// @copydoc Filesystem::close()
 	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.
 	void create_directory(const char* path);