added formal ui test code for zarby decompression, surface building not supported yet

This commit is contained in:
Justin Scofield
2022-06-18 00:26:50 -04:00
parent 664263ac32
commit 011f89acc3
3 changed files with 37 additions and 11 deletions

View File

@@ -29,14 +29,16 @@ class ROM {
void LoadFromFile(const std::string& path);
std::vector<tile8> ExtractTiles(Graphics::TilePreset& preset);
Graphics::SNESPalette ExtractPalette(Graphics::TilePreset& preset);
uchar* SNES3bppTo8bppSheet(uchar *sheet_buffer_in);
uint32_t GetRomPosition(int direct_addr, uint snes_addr) const;
inline uchar* GetRawData() { return current_rom_; }
const uchar* getTitle() const { return title; }
long int getSize() const { return size_; }
char getVersion() const { return version_; }
bool isLoaded() const { return loaded; }
bool isLoaded() const { return loaded; }
uchar* LoadGraphicsSheet(int offset);
uchar* SNES3bppTo8bppSheet(uchar *sheet_buffer_in);
char* Decompress(int pos, bool reversed = false);
private: