forked from mirror/OpenTTD
Codechange: introduce SpriteFile to be used by the sprite loader instead of the global FIO slot functionality
This commit is contained in:
@@ -23,10 +23,10 @@ byte FioReadByte();
|
||||
uint16 FioReadWord();
|
||||
uint32 FioReadDword();
|
||||
void FioCloseAll();
|
||||
void FioOpenFile(int slot, const std::string &filename, Subdirectory subdir);
|
||||
class SpriteFile &FioOpenFile(int slot, const std::string &filename, Subdirectory subdir, bool palette_remap = false);
|
||||
void FioReadBlock(void *ptr, size_t size);
|
||||
void FioSkipBytes(int n);
|
||||
class RandomAccessFile *FioGetRandomAccessFile(int slot);
|
||||
class SpriteFile *FioGetSpriteFile(int slot);
|
||||
|
||||
void FioFCloseFile(FILE *f);
|
||||
FILE *FioFOpenFile(const std::string &filename, const char *mode, Subdirectory subdir, size_t *filesize = nullptr);
|
||||
|
Reference in New Issue
Block a user