Reoragnize V2 functions in ROM

This commit is contained in:
Justin Scofield
2022-07-24 00:01:05 -04:00
parent 8e9636c0b5
commit bbef72a9b0
2 changed files with 157 additions and 163 deletions

View File

@@ -41,6 +41,10 @@ struct OWMapTiles {
class ROM {
public:
absl::Status OpenFromFile(const absl::string_view& filename);
absl::StatusOr<Bytes> DecompressV2(int offset, int size = 0x800,
bool reversed = false);
absl::StatusOr<Bytes> Convert3bppTo8bppSheet(Bytes sheet, int size = 0x1000);
absl::Status LoadAllGraphicsDataV2();
// absl::Status SaveOverworld();
// absl::Status SaveDungeons();
@@ -57,11 +61,6 @@ class ROM {
uchar* DecompressOverworld(int pos, int size);
uchar* Decompress(int pos, int size = 0x800, bool reversed = false);
absl::StatusOr<Bytes> DecompressV2(int offset, int size = 0x800,
bool reversed = false);
absl::StatusOr<Bytes> Convert3bppTo8bppSheet(Bytes sheet, int size = 0x1000);
absl::Status LoadAllGraphicsDataV2();
uchar* SNES3bppTo8bppSheet(uchar* buffer_in, int sheet_id = 0,
int size = 0x1000);