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

@@ -39,6 +39,14 @@ static bool _do_scan_working_directory = true;
extern std::string _config_file;
extern std::string _highscore_file;
/**
* Transition helper to get the RandomAccessFile associated with a given slot.
*/
RandomAccessFile *FioGetRandomAccessFile(int slot)
{
return _fio_files[slot];
}
/**
* Get position in the current file.
* @return Position in the file.