| 11 | { |
| 12 | |
| 13 | bool checkParseFileName(MyGUI::EditBox* _edit) |
| 14 | { |
| 15 | const MyGUI::UString& text = _edit->getOnlyText(); |
| 16 | |
| 17 | bool success = false; |
| 18 | |
| 19 | if (text.find_first_of("*?") == std::string::npos) |
| 20 | { |
| 21 | success = MyGUI::DataManager::getInstance().isDataExist(text); |
| 22 | } |
| 23 | else |
| 24 | { |
| 25 | success = false; |
| 26 | } |
| 27 | |
| 28 | _setSuccessText(_edit, text, success); |
| 29 | return success; |
| 30 | } |
| 31 | |
| 32 | void _setSuccessText(MyGUI::EditBox* _edit, const MyGUI::UString& _text, bool _success) |
| 33 | { |
no test coverage detected