src/fileio.h
author truelight
Mon, 19 Mar 2007 12:49:27 +0000
branchnoai
changeset 9476 1d1ed96f32ad
parent 6624 554e5aee6c3f
child 6720 35756db7e577
child 7371 b86b05214afe
permissions -rw-r--r--
(svn r9323) [NoAI] -Sync with trunk r9206:9322
/* $Id$ */

/** @file fileio.h Declarations for Standard In/Out file operations */

#ifndef FILEIO_H
#define FILEIO_H

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

FILE *FioFOpenFile(const char *filename);
bool FioCheckFileExists(const char *filename);
void FioCreateDirectory(const char *filename);

void AppendPathSeparator(char *buf, size_t buflen);
void DeterminePaths(const char *exe);

#endif /* FILEIO_H */