Store converted binary graphics data in ScreenEditor and rename save functions for clarity

This commit is contained in:
scawful
2024-11-10 17:25:26 -05:00
parent 996c6c92ee
commit a70414d803
3 changed files with 4 additions and 2 deletions

View File

@@ -503,6 +503,7 @@ void ScreenEditor::LoadBinaryGfx() {
std::vector<uint8_t> bin_data((std::istreambuf_iterator<char>(file)),
std::istreambuf_iterator<char>());
auto converted_bin = gfx::SnesTo8bppSheet(bin_data, 4, 4);
gfx_bin_data_ = converted_bin;
tile16_sheet_.clear();
if (LoadDungeonMapTile16(converted_bin, true).ok()) {
sheets_.clear();