CgxViewer, GraphicsEditor updates

This commit is contained in:
Justin Scofield
2023-08-02 18:58:29 -04:00
parent 88c915ce9d
commit d4fdee6d32
6 changed files with 114 additions and 46 deletions

View File

@@ -307,11 +307,16 @@ absl::Status ROM::LoadFromFile(const absl::string_view& filename,
absl::StrCat("Could not open ROM file: ", filename));
}
bool has_header = false;
int header_count = 0x200;
size_ = std::filesystem::file_size(filename);
rom_data_.resize(size_);
for (auto i = 0; i < size_; ++i) {
char byte_to_read = ' ';
file.read(&byte_to_read, sizeof(char));
if (byte_to_read == 0x00) {
has_header = true;
}
rom_data_[i] = byte_to_read;
}