Enhance testing system integration in EditorManager and app configuration

- Added conditional compilation flags for enabling testing features in EditorManager, ensuring that testing-related functionalities are only initialized when tests are enabled.
- Updated app configuration to define YAZE_ENABLE_TESTING based on the build settings, improving clarity and control over testing capabilities.
- Refactored comments to clarify the context of testing features throughout the EditorManager code.
This commit is contained in:
scawful
2025-09-27 20:14:20 -04:00
parent e958fd139e
commit a578d48278
3 changed files with 30 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
#include "tile16_editor.h"
#include <array>
#include <set>
#include "absl/status/status.h"
@@ -1617,7 +1618,7 @@ void Tile16Editor::DrawPaletteSettings() {
Separator();
Text("Current State:");
static const char* palette_group_names[] = {
static constexpr std::array<const char*, 7> palette_group_names = {
"OW Main", "OW Aux", "OW Anim", "Dungeon", "Sprites", "Armor", "Sword"
};
Text("Palette Group: %d (%s)", current_palette_group_,