29 #ifdef MINIZIP_ENABLED 31 #ifndef FILE_ACCESS_Zip_H 32 #define FILE_ACCESS_Zip_H 35 #include "core/io/file_access_pack.h" 64 static ZipArchive* instance;
66 FileAccess::CreateFunc fa_create_func;
70 void close_handle(unzFile p_file)
const;
71 unzFile get_file_handle(
String p_file)
const;
73 Error add_package(
String p_name);
75 bool file_exists(
String p_name)
const;
77 virtual bool try_open_pack(
const String& p_path);
80 static ZipArchive* get_singleton();
98 virtual Error _open(
const String& p_path,
int p_mode_flags);
100 virtual bool is_open()
const;
102 virtual void seek(
size_t p_position);
103 virtual void seek_end(int64_t p_position=0);
104 virtual size_t get_pos()
const;
105 virtual size_t get_len()
const;
107 virtual bool eof_reached()
const;
109 virtual uint8_t get_8()
const;
110 virtual int get_buffer(uint8_t *p_dst,
int p_length)
const;
112 virtual Error get_error()
const;
114 virtual void store_8(uint8_t p_dest);
115 virtual bool file_exists(
const String& p_name);
117 virtual uint64_t _get_modified_time(
const String& p_file) {
return 0; }
123 #endif // FILE_ACCESS_ZIP_H Definition: file_access_pack.h:46
Definition: file_access_pack.h:119
Definition: file_access.h:40