Refactor DungeonEditor: streamline Load and Update methods, enhance initialization flow and usage statistics calculation
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user