From c097bc9d7d610b613f76152b3cdcb9be2af7a1c7 Mon Sep 17 00:00:00 2001 From: Rubidium Date: Tue, 13 Apr 2021 21:58:56 +0200 Subject: Codechange: let NewGRF sounds make use of RandomAccessFile instead of the FIO slot functions --- src/fileio.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/fileio.cpp') diff --git a/src/fileio.cpp b/src/fileio.cpp index 465e71304..6b13e3089 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -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. -- cgit v1.2.3-54-g00ecf