add push_back to ROM and cleanup some stuff

This commit is contained in:
scawful
2023-08-03 19:24:17 -04:00
parent e7ef0fae56
commit 8cac0b71b4
5 changed files with 32 additions and 41 deletions

View File

@@ -126,6 +126,8 @@ class ROM {
auto isLoaded() const { return is_loaded_; }
auto char_data() { return reinterpret_cast<char*>(rom_data_.data()); }
auto push_back(uchar byte) { rom_data_.push_back(byte); }
void malloc(int n_bytes) {
rom_data_.clear();
rom_data_.reserve(n_bytes);