fileio.h
author Darkvater
Tue, 02 May 2006 13:00:07 +0000
branch0.4
changeset 9982 6f21b86be9af
parent 9959 984493ab6fff
permissions -rw-r--r--
(svn r4667) - Backport from trunk (r4291):
Fix: validate all received strings for correctness. This fixes
potential crashes on hacked clients/servers
/* $Id$ */

#ifndef FILEIO_H
#define FILEIO_H

void FioSeekTo(uint32 pos, int mode);
void FioSeekToFile(uint32 pos);
uint32 FioGetPos(void);
byte FioReadByte(void);
uint16 FioReadWord(void);
uint32 FioReadDword(void);
void FioCloseAll(void);
FILE *FioFOpenFile(const char *filename);
void FioOpenFile(int slot, const char *filename);
void FioReadBlock(void *ptr, uint size);
void FioSkipBytes(int n);
bool FiosCheckFileExists(const char *filename);

#endif /* FILEIO_H */