| 160 | } |
| 161 | |
| 162 | bool Shell::WriteBytes(const std::filesystem::path &path, const std::vector<uint8_t> &data) { |
| 163 | std::ofstream file(path, std::ios::out | std::ios::binary); |
| 164 | file.write(reinterpret_cast<const char *>(data.data()), (std::streamsize)data.size()); |
| 165 | file.close(); |
| 166 | return !file.fail() && !file.bad(); |
| 167 | } |