diff options
author | Rubidium <rubidium@openttd.org> | 2021-04-13 21:58:56 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-08 12:39:34 +0200 |
commit | c097bc9d7d610b613f76152b3cdcb9be2af7a1c7 (patch) | |
tree | 1f6f7fad0d4b12626bc626a08127ebf50cd6721b /src/fileio.cpp | |
parent | b144e56b2c4d92baa868435818a99faa8ed06439 (diff) | |
download | openttd-c097bc9d7d610b613f76152b3cdcb9be2af7a1c7.tar.xz |
Codechange: let NewGRF sounds make use of RandomAccessFile instead of the FIO slot functions
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r-- | src/fileio.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp index 465e71304..6b13e3089 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -40,6 +40,14 @@ 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. */ |