diff options
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(); }; |