diff options
author | Rubidium <rubidium@openttd.org> | 2021-04-14 17:20:39 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-08 12:39:34 +0200 |
commit | fdc11a9f943bcbd674b8b69a2bb0895414928028 (patch) | |
tree | ccd04bb045ed1aeebbff2b88224f9c52988ddc92 /src/fileio_func.h | |
parent | 0dd339ecd8fab0ae3a4901e0ad185798e04cccf3 (diff) | |
download | openttd-fdc11a9f943bcbd674b8b69a2bb0895414928028.tar.xz |
Codechange: introduce SpriteFile to be used by the sprite loader instead of the global FIO slot functionality
Diffstat (limited to 'src/fileio_func.h')
-rw-r--r-- | src/fileio_func.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio_func.h b/src/fileio_func.h index 55fac39ef..b3ed9e138 100644 --- a/src/fileio_func.h +++ b/src/fileio_func.h @@ -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); |