Refactor EditorManager and Tile16Editor for improved functionality and error handling

- Commented out the ArenaTestSuite registration in EditorManager with a TODO for future implementation.
- Updated the DrawMenuBar method in EditorManager to enhance version display alignment and tooltip functionality.
- Modified OverworldEditor to include error handling for ASM application and commented out the Asar wrapper for build compatibility.
- Enhanced Tile16Editor with additional bounds checks and error handling to ensure robustness during tile operations.
- Introduced new test cases in RomDependentTestSuite for Tile16Editor functionality and comprehensive save operations, improving test coverage.
This commit is contained in:
scawful
2025-09-25 16:05:38 -04:00
parent 6779c4cc4a
commit c072ec9791
4 changed files with 231 additions and 120 deletions

View File

@@ -118,7 +118,7 @@ void EditorManager::InitializeTestSuites() {
test_manager.RegisterTestSuite(std::make_unique<test::IntegratedTestSuite>());
test_manager.RegisterTestSuite(std::make_unique<test::PerformanceTestSuite>());
test_manager.RegisterTestSuite(std::make_unique<test::UITestSuite>());
test_manager.RegisterTestSuite(std::make_unique<test::ArenaTestSuite>());
// test_manager.RegisterTestSuite(std::make_unique<test::ArenaTestSuite>()); // TODO: Implement ArenaTestSuite
test_manager.RegisterTestSuite(std::make_unique<test::RomDependentTestSuite>());
// Register Google Test suite if available
@@ -731,7 +731,7 @@ void EditorManager::DrawMenuBar() {
SetTooltip("Sessions: %zu active\nClick to switch between sessions", sessions_.size());
}
SameLine();
SeparatorEx(ImGuiSeparatorFlags_Vertical);
ImGui::SeparatorEx(ImGuiSeparatorFlags_Vertical);
SameLine();
}