blob: ebb0d70070fe352a0e94ed06126fcf5b8ef3084f (
plain)
1
2
3
4
5
6
7
|
#include "asset.h"
#include <util/file.h>
void BaseAsset::extractBinary(const std::vector<char>& baserom) {
auto file = util::open_file(path, "w");
std::fwrite(baserom.data() + start, 1, static_cast<size_t>(size), file.get());
}
|