mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-09 19:10:38 +00:00
6a6e145010
you can still use SDL drivers if you like and you have to run "make upgradeconf" to start using the cocoa drivers (or manually write WITH_COCOA:=1) since SDL breaks the cocoa drivers, you can't compile with both SDL and cocoa support Using cocoa drivers makes it easier to make universal binaries and it solves: -FS#18 [OSX] SDL is weird in universal binaries -FS#2 [OSX] lazy pointer crash on exit -FS#10 [OSX] linking error when linking statically to SDL 1.2.8 (needless to explain this, but it means it should be able to compile statically with the default settings now) -[ 1215073 ] Switching to large size out of fullscreen crashes Using SDL drivers will still have those issues though
20 lines
472 B
C
20 lines
472 B
C
/* $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 */
|