diff options
author | frosch <frosch@openttd.org> | 2010-06-13 14:17:26 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-06-13 14:17:26 +0000 |
commit | ff89345a5c0fc5b2f97e847b340d1fcc0c0bfcaf (patch) | |
tree | 96e69d4f3aa9bb06c8e3d6e5d540422836535243 /src/fios.h | |
parent | c5424bec97550bd085ffbd06814eb9f02454ece8 (diff) | |
download | openttd-ff89345a5c0fc5b2f97e847b340d1fcc0c0bfcaf.tar.xz |
(svn r19984) -Feature: Show some savegame details when selecting items in saveload GUIs.
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 eb06a0a9e..89fa870ab 100644 --- a/src/fios.h +++ b/src/fios.h @@ -48,6 +48,24 @@ struct LoadCheckData { this->Clear(); } + /** + * Check whether loading the game resulted in errors. + * @return true if errors were encountered. + */ + bool HasErrors() + { + return this->checkable && this->error != INVALID_STRING_ID; + } + + /** + * Check whether the game uses any NewGrfs. + * @return true if NewGrfs are used. + */ + bool HasNewGrfs() + { + return this->checkable && this->error == INVALID_STRING_ID && this->grfconfig != NULL; + } + void Clear(); }; |