From 54ba4010e4de835d45a2c14a46e849649a244ca8 Mon Sep 17 00:00:00 2001 From: Justin Scofield <47263509+scawful@users.noreply.github.com> Date: Sun, 12 Jun 2022 20:30:51 -0400 Subject: [PATCH] Delete ROM.h --- src/Application/Data/ROM.h | 67 -------------------------------------- 1 file changed, 67 deletions(-) delete mode 100644 src/Application/Data/ROM.h diff --git a/src/Application/Data/ROM.h b/src/Application/Data/ROM.h deleted file mode 100644 index d8070e67..00000000 --- a/src/Application/Data/ROM.h +++ /dev/null @@ -1,67 +0,0 @@ -#ifndef YAZE_APPLICATION_UTILS_ROM_H -#define YAZE_APPLICATION_UTILS_ROM_H - -#include -#include -#include -#include -#include -#include -#include - -#include "Core/Constants.h" -#include "graphics/tile.h" -#include "compressions/alttpcompression.h" -#include "compressions/stdnintendo.h" -#include "rommapping.h" -#include "tile.h" - -namespace yaze { -namespace Application { -namespace Data { - -using byte = unsigned char; -using ushort = unsigned short; - -using namespace Graphics; - -int AddressFromBytes(byte addr1, byte addr2, byte addr3); - -class ROM { - public: - void LoadFromFile(const std::string& path); - std::vector ExtractTiles(TilePreset& preset); - SNESPalette ExtractPalette(TilePreset& preset); - unsigned int getRomPosition(const TilePreset& preset, int directAddr, - unsigned int snesAddr); - short AddressFromBytes(byte addr1, byte addr2); - inline byte* GetRawData() { return current_rom_; } - const unsigned char* getTitle() const { return title; } - unsigned int getSize() const { return size; } - char getVersion() const { return version; } - bool isLoaded() const { return loaded; } - - private: - bool loaded = false; - - byte* current_rom_; - char* rom_data_; - - bool fastrom; - long int size; - enum rom_type type; - - bool overrideHeaderInfo; - bool overridenHeaderInfo; - unsigned int lastUnCompressSize; - unsigned int lastCompressedSize; - unsigned int lastCompressSize; - unsigned char version; - unsigned char title[21] = "ROM Not Loaded"; -}; - -} // namespace Data -} // namespace Application -} // namespace yaze - -#endif \ No newline at end of file