Update vcpkg baseline and CI configuration for improved compatibility

- Changed the builtin baseline in vcpkg.json to a specific commit hash for better dependency management.
- Updated CI workflow in ci.yml to use GCC-12 and Clang-15, enhancing compiler support and ensuring compatibility with the latest features.
- Added necessary packages for the new compiler versions to the CI setup, improving build reliability.
This commit is contained in:
scawful
2025-09-25 10:36:09 -04:00
parent 189587d51e
commit fd49fb8511
3 changed files with 13 additions and 18 deletions

View File

@@ -1,9 +1,7 @@
#ifndef YAZE_GUI_COLOR_H
#define YAZE_GUI_COLOR_H
#if defined(__clang__)
#include <format>
#endif
#include "absl/strings/str_format.h"
#include <string>
#include "absl/status/status.h"
@@ -25,17 +23,11 @@ inline ImVec4 ConvertColorToImVec4(const Color &color) {
}
inline std::string ColorToHexString(const Color &color) {
#if defined(__clang__)
return std::format(
"{:02X}{:02X}{:02X}{:02X}", static_cast<int>(color.red * 255),
static_cast<int>(color.green * 255), static_cast<int>(color.blue * 255),
static_cast<int>(color.alpha * 255));
#else
return absl::StrFormat("%02X%02X%02X%02X", static_cast<int>(color.red * 255),
return absl::StrFormat("%02X%02X%02X%02X",
static_cast<int>(color.red * 255),
static_cast<int>(color.green * 255),
static_cast<int>(color.blue * 255),
static_cast<int>(color.alpha * 255));
#endif
}
// A utility function to convert an SnesColor object to an ImVec4 with