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

Method LoadCreatorPacket

src/par2repairer.cpp:723–741  ·  view source on GitHub ↗

Finish loading the creator packet

Source from the content-addressed store, hash-verified

721
722// Finish loading the creator packet
723bool Par2Repairer::LoadCreatorPacket(DiskFile *diskfile, u64 offset, PACKET_HEADER &header)
724{
725 // Do we already have a creator packet
726 if (0 != creatorpacket)
727 return false;
728
729 CreatorPacket *packet = new CreatorPacket;
730
731 // Load the packet from disk;
732 if (!packet->Load(diskfile, offset, header))
733 {
734 delete packet;
735 return false;
736 }
737
738 creatorpacket = packet;
739
740 return true;
741}
742
743// Load packets from other PAR2 files with names based on the original PAR2 file
744bool Par2Repairer::LoadPacketsFromOtherFiles(std::string filename)

Callers

nothing calls this directly

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected