MCPcopy Create free account
hub / github.com/Parchive/par2cmdline / LoadPacketsFromExtraFiles

Method LoadPacketsFromExtraFiles

src/par2repairer.cpp:840–855  ·  view source on GitHub ↗

Load packets from any other PAR2 files whose names are given on the command line

Source from the content-addressed store, hash-verified

838
839// Load packets from any other PAR2 files whose names are given on the command line
840bool 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
858bool Par2Repairer::CheckPacketConsistency(void)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected