| 796 | |
| 797 | |
| 798 | void FCEUARCHIVEFILEINFO::FilterByExtension(const char** ext) |
| 799 | { |
| 800 | if(!ext) return; |
| 801 | int count = size(); |
| 802 | for(int i=count-1;i>=0;i--) { |
| 803 | std::string fext = getExtension((*this)[i].name.c_str()); |
| 804 | const char** currext = ext; |
| 805 | while(*currext) { |
| 806 | if(fext == *currext) |
| 807 | goto ok; |
| 808 | currext++; |
| 809 | } |
| 810 | this->erase(begin()+i); |
| 811 | ok: ; |
| 812 | } |
| 813 | } |
no test coverage detected