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;
60 void open_read_low_level();
61 bool open_hash_file();
67 uint32 key_to_hash_address(
const Common::String &src, uint32 hash_table_size);
84 bool get_local_name_from_hagfile(
Common::String &local_name, byte hagfile);
112 bool seek(uint32 pos);
117 bool seek_ahead(int32 amount);
122 uint32 read(MemHandle bufferHandle);
123 int32 read(MemHandle bufferHandle, int32 n);
124 int32 read(byte *bufferHandle, int32 n);
131 return (int8)readByte();
137 uint16 readUint16LE();
138 int16 readSint16LE() {
139 return (int16)readUint16LE();
145 uint32 readUint32LE();
146 int32 readSint32LE() {
147 return (int32)readUint32LE();
156 void sysfile_init(
bool in_hag_mode);
157 void sysfile_shutdown();
Definition: sys_file.h:39
Definition: database.h:28
Definition: sys_file.h:47
Definition: sys_file.h:31