MCPcopy Create free account
hub / github.com/TASEmulators/fceux / FilterByExtension

Method FilterByExtension

src/file.cpp:798–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

796
797
798void 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}

Callers 2

FCEU_fopenFunction · 0.80
ReplayDialogProcFunction · 0.80

Calls 1

getExtensionFunction · 0.85

Tested by

no test coverage detected