bug: fix tile16 issue with toint16 method

This commit is contained in:
Justin Scofield
2022-09-05 13:03:05 -05:00
parent 32f287d89c
commit 7daeeea14e
4 changed files with 20 additions and 16 deletions

View File

@@ -77,7 +77,7 @@ class ROM {
absl::StatusOr<Bytes> DecompressOverworld(int pos, int size);
absl::Status LoadAllGraphicsData();
absl::StatusOr<Bytes> CreateAllGfxDataRaw();
absl::Status CreateAllGraphicsData();
@@ -117,6 +117,10 @@ class ROM {
}
const uchar* operator&() { return rom_data_.data(); }
ushort toint16(int offset) {
return (ushort)((rom_data_[offset + 1]) << 8) | rom_data_[offset];
}
private:
long size_ = 0;
uchar title[21] = "ROM Not Loaded";