22 #ifndef M4_FILEIO_SYS_FILE_H 23 #define M4_FILEIO_SYS_FILE_H 25 #include "common/file.h" 26 #include "m4/fileio/fileio.h" 27 #include "m4/mem/reloc.h" 40 bool hag_flag =
false;
41 bool first_read_flag =
false;
51 AccessMode mode = UNOPENED;
53 bool show_error_flag =
true;
56 uint32 last_head_pos = 0;
61 void open_read_low_level();
62 bool open_hash_file();
68 uint32 key_to_hash_address(
const Common::String &src, uint32 hash_table_size);
85 bool get_local_name_from_hagfile(
Common::String &local_name, byte hagfile);
113 bool seek(uint32 pos);
118 bool seek_ahead(int32 amount);
123 uint32 read(MemHandle bufferHandle);
124 int32 read(MemHandle bufferHandle, int32 n);
125 int32 read(byte *bufferHandle, int32 n);
132 return (int8)readByte();
138 uint16 readUint16LE();
139 int16 readSint16LE() {
140 return (int16)readUint16LE();
146 uint32 readUint32LE();
147 int32 readSint32LE() {
148 return (int32)readUint32LE();
157 void sysfile_init(
bool in_hag_mode);
158 void sysfile_shutdown();
Definition: sys_file.h:39
Definition: database.h:28
Definition: sys_file.h:47
Definition: sys_file.h:31