(svn r19212) -Fix: base graphics set with an empty filename in the obg file caused segfaults

This commit is contained in:
yexo
2010-02-22 20:18:59 +00:00
parent dd6ef3a61b
commit 2eea7da8e6
3 changed files with 5 additions and 4 deletions

View File

@@ -108,9 +108,10 @@ struct BaseSet {
* Read the set information from a loaded ini.
* @param ini the ini to read from
* @param path the path to this ini file (for filenames)
* @param allow_empty_filename empty filenames are valid
* @return true if loading was successful.
*/
bool FillSetDetails(IniFile *ini, const char *path);
bool FillSetDetails(IniFile *ini, const char *path, bool allow_empty_filename = true);
/**
* Get the description for the given ISO code.