Refactor DungeonEditor: streamline Load and Update methods, enhance initialization flow and usage statistics calculation

This commit is contained in:
scawful
2025-03-14 00:33:32 -04:00
parent ca9237fa22
commit e4e635b367
2 changed files with 29 additions and 42 deletions

View File

@@ -708,6 +708,7 @@ void EditorManager::LoadAssets() {
ASSIGN_OR_RETURN(*sheet_manager.mutable_gfx_sheets(),
LoadAllGraphicsData(*rom()))
RETURN_IF_ERROR(overworld_editor_.Load());
RETURN_IF_ERROR(dungeon_editor_.Load());
return absl::OkStatus();
};
if (!load_rom_assets().ok()) {