initialize blank editor set in EditorManager; update overworld initialization to use Rom pointers; add Clear and CleanupUnusedTextures methods in OverworldEditor.

This commit is contained in:
scawful
2025-04-12 11:33:03 -04:00
parent 935b0b5863
commit 1d64846a37
4 changed files with 9 additions and 3 deletions

View File

@@ -73,6 +73,11 @@ void DrawRomSelector(EditorManager &editor_manager) {
} // namespace
void EditorManager::Initialize(const std::string &filename) {
// Create a blank editor set
auto blank_editor_set = std::make_unique<EditorSet>();
editor_sets_[nullptr] = std::move(blank_editor_set);
current_editor_set_ = editor_sets_[nullptr].get();
if (!filename.empty()) {
PRINT_IF_ERROR(OpenRomOrProject(filename));
}