diff options
author | rubidium <rubidium@openttd.org> | 2010-02-22 16:24:23 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-02-22 16:24:23 +0000 |
commit | 03e5434e63305fa66cbd6460f584c2dd99cdb128 (patch) | |
tree | daa94b4c2147626dd1ab275f61ad1badd971a7fb /src/base_media_func.h | |
parent | dd7c2b2f9db8b2ca2339d43fcf7b0f6da46e8c96 (diff) | |
download | openttd-03e5434e63305fa66cbd6460f584c2dd99cdb128.tar.xz |
(svn r19206) -Add: concept of fallback base sets, i.e. do not automatically load the NoMusic/NoSound sets when there is another set
Diffstat (limited to 'src/base_media_func.h')
-rw-r--r-- | src/base_media_func.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base_media_func.h b/src/base_media_func.h index 6a77501c4..ba0f75acd 100644 --- a/src/base_media_func.h +++ b/src/base_media_func.h @@ -58,6 +58,9 @@ bool BaseSet<T, Tnum_files, Tsubdir>::FillSetDetails(IniFile *ini, const char *p fetch_metadata("version"); this->version = atoi(item->value); + item = metadata->GetItem("fallback", false); + this->fallback = (item != NULL && strcmp(item->value, "0") != 0 && strcmp(item->value, "false") != 0); + /* For each of the file types we want to find the file, MD5 checksums and warning messages. */ IniGroup *files = ini->GetGroup("files"); IniGroup *md5s = ini->GetGroup("md5s"); |