| 122 | } |
| 123 | |
| 124 | u32 PFS0::GetFileIndexByName(const std::string &file_name) { |
| 125 | u32 idx = 0; |
| 126 | for(const auto &pfs0_file: this->files) { |
| 127 | if(strcasecmp(pfs0_file.name.c_str(), file_name.c_str()) == 0) { |
| 128 | return idx; |
| 129 | } |
| 130 | idx++; |
| 131 | } |
| 132 | return InvalidFileIndex; |
| 133 | } |
| 134 | |
| 135 | } |
no outgoing calls
no test coverage detected