From 847a11f6ecec971452c8cb4d6ae7b55d359731c8 Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew" Date: Sat, 30 Apr 2011 11:28:25 +0000 Subject: [PATCH] fix an issue where the PSP would not find the rule files --- projects/mtg/src/Rules.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/mtg/src/Rules.cpp b/projects/mtg/src/Rules.cpp index 35bfa1c01..0c8c62911 100644 --- a/projects/mtg/src/Rules.cpp +++ b/projects/mtg/src/Rules.cpp @@ -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)