Finish loading the creator packet
| 721 | |
| 722 | // Finish loading the creator packet |
| 723 | bool 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 |
| 744 | bool Par2Repairer::LoadPacketsFromOtherFiles(std::string filename) |