(svn r19984) -Feature: Show some savegame details when selecting items in saveload GUIs.

This commit is contained in:
frosch
2010-06-13 14:17:26 +00:00
parent 1982576b07
commit 5f6534b5ec
3 changed files with 248 additions and 56 deletions

View File

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