| 93 | |
| 94 | template <typename Data> |
| 95 | bool DeserializeFileDB(const fs::path& path, Data& data) |
| 96 | { |
| 97 | // open input file, and associate with CAutoFile |
| 98 | FILE *file = fsbridge::fopen(path, "rb"); |
| 99 | CAutoFile filein(file, SER_DISK, CLIENT_VERSION); |
| 100 | if (filein.IsNull()) |
| 101 | return error("%s: Failed to open file %s", __func__, path.string()); |
| 102 | |
| 103 | return DeserializeDB(filein, data); |
| 104 | } |
| 105 | |
| 106 | } |
| 107 |
no test coverage detected