From 3487332b91b9e2af248abdc9fdaafeee9ce308d4 Mon Sep 17 00:00:00 2001 From: Justin Scofield Date: Mon, 25 Jul 2022 11:27:07 -0400 Subject: [PATCH] ROM housekeeping --- src/app/rom.cc | 5 +++-- src/app/rom.h | 12 ++++-------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/app/rom.cc b/src/app/rom.cc index 013d7d8f..2e398c7b 100644 --- a/src/app/rom.cc +++ b/src/app/rom.cc @@ -1,5 +1,7 @@ #include "rom.h" +#include + #include #include #include @@ -16,8 +18,7 @@ #include "absl/strings/string_view.h" #include "app/core/common.h" #include "app/core/constants.h" -#include "app/gfx/pseudo_vram.h" -#include "app/gfx/snes_tile.h" +#include "app/gfx/bitmap.h" namespace yaze { namespace app { diff --git a/src/app/rom.h b/src/app/rom.h index a20dfb8e..51582866 100644 --- a/src/app/rom.h +++ b/src/app/rom.h @@ -1,7 +1,8 @@ #ifndef YAZE_APP_ROM_H #define YAZE_APP_ROM_H -#include +#include + #include #include #include @@ -16,11 +17,9 @@ #include "absl/status/statusor.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" -#include "absl/strings/string_view.h" #include "app/core/common.h" #include "app/core/constants.h" -#include "app/gfx/pseudo_vram.h" -#include "app/gfx/snes_tile.h" +#include "app/gfx/bitmap.h" namespace yaze { namespace app { @@ -59,9 +58,8 @@ class ROM { uint GetGraphicsAddress(uint8_t id) const; auto GetSize() const { return size_; } auto GetTitle() const { return title; } - auto GetGraphicsBin() const { return graphics_bin_; } - auto GetVRAM() const { return pseudo_vram_; } auto GetBytes() const { return rom_data_; } + auto GetGraphicsBin() const { return graphics_bin_; } auto isLoaded() const { return is_loaded_; } @@ -86,13 +84,11 @@ class ROM { const uchar* operator&() { return rom_data_.data(); } private: - int num_sheets_ = 0; long size_ = 0; uchar title[21] = "ROM Not Loaded"; bool is_loaded_ = false; Bytes rom_data_; - gfx::pseudo_vram pseudo_vram_; std::shared_ptr renderer_; absl::flat_hash_map graphics_bin_; };