Rename snes_color.h to snes.h and consolidate tile structures

This commit is contained in:
scawful
2025-01-19 21:00:51 -05:00
parent c38108b551
commit e0797fee24
6 changed files with 37 additions and 69 deletions

View File

@@ -1,7 +1,7 @@
#ifndef YAZE_APP_GFX_SNES_COLOR_H_
#define YAZE_APP_GFX_SNES_COLOR_H_
#include <snes_color.h>
#include <snes.h>
#include <cstdint>
#include <vector>

View File

@@ -1,7 +1,7 @@
#ifndef YAZE_APP_GFX_SNES_TILE_H
#define YAZE_APP_GFX_SNES_TILE_H
#include <snes_tile.h>
#include <snes.h>
#include <array>
#include <cstdint>

View File

@@ -65,9 +65,11 @@ class CreatePatch : public CommandHandler {
absl::Status handle(const std::vector<std::string>& arg_vec) override;
};
/**
* @brief Open a Rom file and display information about it.
*/
class Tile16Transfer : public CommandHandler {
public:
absl::Status handle(const std::vector<std::string>& arg_vec) override;
};
class Open : public CommandHandler {
public:
absl::Status handle(const std::vector<std::string>& arg_vec) override {
@@ -83,9 +85,6 @@ class Open : public CommandHandler {
}
};
/**
* @brief Backup a Rom file.
*/
class Backup : public CommandHandler {
public:
absl::Status handle(const std::vector<std::string>& arg_vec) override {
@@ -100,17 +99,11 @@ class Backup : public CommandHandler {
}
};
// Compress Graphics
class Compress : public CommandHandler {
public:
absl::Status handle(const std::vector<std::string>& arg_vec) override;
};
// Decompress (Export) Graphics
//
// -e <rom_file> <bin_file> --mode=<optional:mode>
//
// mode:
class Decompress : public CommandHandler {
public:
absl::Status handle(const std::vector<std::string>& arg_vec) override;
@@ -195,17 +188,6 @@ class ReadFromRom : public CommandHandler {
}
};
/**
* @brief Transfer tile 16 data from one Rom to another.
* @param arg_vec `-t <src_rom> <dest_rom> "<tile32_id_list:csv>"`
* @return absl::Status
*/
class Tile16Transfer : public CommandHandler {
public:
absl::Status handle(const std::vector<std::string>& arg_vec) override;
};
/**
* @brief Expand a Rom file.