Enhance testing framework and UI integration for YAZE

- Added a comprehensive testing framework with support for unit, integration, and UI tests, improving overall test coverage and reliability.
- Integrated ImGui Test Engine for UI testing, allowing for real-time feedback and visualization of test results.
- Updated CMake configuration to conditionally include testing components based on build options, enhancing flexibility for developers.
- Introduced a new command in the CLI for running asset loading tests on ROMs, providing a straightforward way to validate functionality.
- Enhanced error handling and resource management during testing, ensuring stability and clarity in test execution.
- Improved user interface with a dedicated test dashboard for monitoring test progress and results, enhancing developer experience.
This commit is contained in:
scawful
2025-09-25 13:26:56 -04:00
parent 77ceb0256b
commit 41adb1b70e
21 changed files with 1406 additions and 25 deletions

View File

@@ -13,11 +13,7 @@ ImVec4 ConvertSnesColorToImVec4(const gfx::SnesColor& color) {
}
gfx::SnesColor ConvertImVec4ToSnesColor(const ImVec4& color) {
// Convert from float (0.0-1.0) to uint8_t (0-255)
uint8_t r = static_cast<uint8_t>(color.x * 255.0f);
uint8_t g = static_cast<uint8_t>(color.y * 255.0f);
uint8_t b = static_cast<uint8_t>(color.z * 255.0f);
return gfx::SnesColor(r, g, b);
return gfx::SnesColor(color);
}
IMGUI_API bool SnesColorButton(absl::string_view id, gfx::SnesColor& color,