fix an issue where the PSP would not find the rule files

This commit is contained in:
wagic.the.homebrew
2011-04-30 11:28:25 +00:00
parent cde63ed4be
commit 847a11f6ec

View File

@@ -555,7 +555,8 @@ bool Rules::canChooseDeck()
int Rules::load(string _filename)
{
if (_filename.size() < 5 || _filename.find(".txt") == string::npos)
//avoid non .txt files
if (_filename.size() < 5 || (_filename.find(".txt") == string::npos && _filename.find(".TXT") == string::npos))
return 0;
if (!filename.size()) //this check is necessary because of the recursive calls (a fil loads other files)