Start Overworld save

This commit is contained in:
scawful
2023-08-26 17:06:30 -04:00
parent c4ef29f329
commit 168030ee31
6 changed files with 490 additions and 171 deletions

View File

@@ -245,6 +245,13 @@ void OverworldEditor::RenderUpdatedMapBitmap(const ImVec2 &click_position,
void OverworldEditor::QueueROMChanges(int index, ushort new_tile16) {
// Store the changes made by the user to the ROM (or project file)
overworld_.SaveOverworldMaps();
if (!overworld_.CreateTile32Tilemap()) {
// overworld_.SaveMap16Tiles();
overworld_.SaveMap32Tiles();
} else {
std::cout << "Failed to create tile32 tilemap" << std::endl;
}
}
void OverworldEditor::DetermineActiveMap(const ImVec2 &mouse_position) {