Load packets from any other PAR2 files whose names are given on the command line
| 838 | |
| 839 | // Load packets from any other PAR2 files whose names are given on the command line |
| 840 | bool Par2Repairer::LoadPacketsFromExtraFiles(const std::vector<std::string> &extrafiles) |
| 841 | { |
| 842 | for (std::vector<std::string>::const_iterator i=extrafiles.begin(); i!=extrafiles.end(); i++) |
| 843 | { |
| 844 | std::string filename = *i; |
| 845 | |
| 846 | // If the filename contains ".par2" anywhere |
| 847 | if (std::string::npos != filename.find(".par2") || |
| 848 | std::string::npos != filename.find(".PAR2")) |
| 849 | { |
| 850 | LoadPacketsFromFile(filename); |
| 851 | } |
| 852 | } |
| 853 | |
| 854 | return true; |
| 855 | } |
| 856 | |
| 857 | // Check that the packets are consistent and discard any that are not |
| 858 | bool Par2Repairer::CheckPacketConsistency(void) |
nothing calls this directly
no outgoing calls
no test coverage detected