Codechange: let NewGRF sounds make use of RandomAccessFile instead of the FIO slot functions

(cherry picked from commit c097bc9d7d)
This commit is contained in:
Rubidium
2021-04-13 21:58:56 +02:00
committed by Jonathan G Rennison
parent 4b37044ef1
commit 525f6adcd0
7 changed files with 79 additions and 64 deletions

View File

@@ -26,6 +26,7 @@ void FioCloseAll();
void FioOpenFile(int slot, const std::string &filename, Subdirectory subdir, std::string *output_filename = nullptr);
void FioReadBlock(void *ptr, size_t size);
void FioSkipBytes(int n);
class RandomAccessFile *FioGetRandomAccessFile(int slot);
void FioFCloseFile(FILE *f);
FILE *FioFOpenFile(const std::string &filename, const char *mode, Subdirectory subdir, size_t *filesize = nullptr, std::string *output_filename = nullptr);