diff options
author | rubidium <rubidium@openttd.org> | 2007-10-29 23:02:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-10-29 23:02:31 +0000 |
commit | b14c94867a121a5c6b9b69340953368aee8a8876 (patch) | |
tree | f4608f438da95909157f41aa78f5a878e7152382 /src/fios.h | |
parent | 24956ab71ba1dd9ed1734ae262229f098662b275 (diff) | |
download | openttd-b14c94867a121a5c6b9b69340953368aee8a8876.tar.xz |
(svn r11355) -Fix [FS#1377]: loading too many GRFs was not handled gracefully causing crashes and such.
Diffstat (limited to 'src/fios.h')
-rw-r--r-- | src/fios.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/fios.h b/src/fios.h index b1d923090..8dd0656e4 100644 --- a/src/fios.h +++ b/src/fios.h @@ -5,6 +5,24 @@ #ifndef FIOS_H #define FIOS_H +enum { + /** + * Slot used for the GRF scanning and such. This slot cannot be reused + * as it will otherwise cause issues when pressing "rescan directories". + * It can furthermore not be larger than LAST_GRF_SLOT as that complicates + * the testing for "too much NewGRFs". + */ + CONFIG_SLOT = 0, + /** Slot for the sound. */ + SOUND_SLOT = 1, + /** First slot useable for (New)GRFs used during the game. */ + FIRST_GRF_SLOT = 2, + /** Last slot useable for (New)GRFs used during the game. */ + LAST_GRF_SLOT = 63, + /** Maximum number of slots. */ + MAX_FILE_SLOTS = 64 +}; + /* Deals with finding savegames */ struct FiosItem { byte type; |