diff options
| author | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
| commit | 5dbf1809c6e3e905b94b8764e99491e608122261 (patch) | |
| tree | 5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /platform/android/file_access_android.h | |
| parent | 45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff) | |
| download | godot-5dbf1809c6e3e905b94b8764e99491e608122261.tar.gz godot-5dbf1809c6e3e905b94b8764e99491e608122261.tar.zst godot-5dbf1809c6e3e905b94b8764e99491e608122261.zip | |
Diffstat (limited to 'platform/android/file_access_android.h')
| -rw-r--r-- | platform/android/file_access_android.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/platform/android/file_access_android.h b/platform/android/file_access_android.h index 3d54eb202..de131f19b 100644 --- a/platform/android/file_access_android.h +++ b/platform/android/file_access_android.h @@ -29,33 +29,29 @@ #ifndef FILE_ACCESS_ANDROID_H #define FILE_ACCESS_ANDROID_H - - #include "os/file_access.h" -#include <stdio.h> #include <android/asset_manager.h> #include <android/log.h> +#include <stdio.h> //#include <android_native_app_glue.h> - class FileAccessAndroid : public FileAccess { - static FileAccess* create_android(); + static FileAccess *create_android(); mutable AAsset *a; mutable size_t len; mutable size_t pos; mutable bool eof; public: - static AAssetManager *asset_manager; - virtual Error _open(const String& p_path, int p_mode_flags); ///< open a file + virtual Error _open(const String &p_path, int p_mode_flags); ///< open a file virtual void close(); ///< close a file virtual bool is_open() const; ///< true when file is open virtual void seek(size_t p_position); ///< seek to a given position - virtual void seek_end(int64_t p_position=0); ///< seek from the end of file + virtual void seek_end(int64_t p_position = 0); ///< seek from the end of file virtual size_t get_pos() const; ///< get position in the file virtual size_t get_len() const; ///< get size of the file @@ -68,9 +64,9 @@ public: virtual void store_8(uint8_t p_dest); ///< store a byte - virtual bool file_exists(const String& p_path); ///< return true if a file exists + virtual bool file_exists(const String &p_path); ///< return true if a file exists - virtual uint64_t _get_modified_time(const String& p_file) { return 0; } + virtual uint64_t _get_modified_time(const String &p_file) { return 0; } //static void make_default(); @@ -79,4 +75,3 @@ public: }; #endif // FILE_ACCESS_ANDROID_H - |
