| 49 | } |
| 50 | |
| 51 | static std::string ReadFile(const std::string& path) { |
| 52 | std::ifstream f(path, std::ios::binary); |
| 53 | if (!f) { |
| 54 | throw std::runtime_error("cannot open file: " + path); |
| 55 | } |
| 56 | return std::string(std::istreambuf_iterator<char>(f), {}); |
| 57 | } |
| 58 | |
| 59 | int main(int argc, char** argv) { |
| 60 | std::string resourceZip; |