From fdc11a9f943bcbd674b8b69a2bb0895414928028 Mon Sep 17 00:00:00 2001 From: Rubidium Date: Wed, 14 Apr 2021 17:20:39 +0200 Subject: Codechange: introduce SpriteFile to be used by the sprite loader instead of the global FIO slot functionality --- src/fileio_func.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fileio_func.h') 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); -- cgit v1.2.3-54-g00ecf