| 110 | |
| 111 | template <typename Data> |
| 112 | void DeserializeFileDB(const fs::path& path, Data& data, int version) |
| 113 | { |
| 114 | // open input file, and associate with CAutoFile |
| 115 | FILE* file = fsbridge::fopen(path, "rb"); |
| 116 | CAutoFile filein(file, SER_DISK, version); |
| 117 | if (filein.IsNull()) { |
| 118 | throw DbNotFoundError{}; |
| 119 | } |
| 120 | DeserializeDB(filein, data); |
| 121 | } |
| 122 | } // namespace |
| 123 | |
| 124 | CBanDB::CBanDB(fs::path ban_list_path) |
no test coverage detected