XML data layer: pugixml (external/pugixml, v1.15), a format-neutral DataNode API for every loader, DataFormat=auto|json|xml (default xml), KAGE's archive file system ported (index once, four unpackers, the original's mount order) so --resources can point at an install's resources/ with no import step, the original XML .anm2 loader beside Anm2Ed JSON, mods' own XML; 72 goldens identical from converted resources and from the install

This commit is contained in:
shweet committed 2026-11-24 05:57:54 -05:00
1 parent 74322af121
commit 6d8a43775d
52 files changed
+1513 -909

No files matched your search

+1 -2
View File
@@ -472,8 +472,7 @@ static void trinket_icon_load(PlayerHUDTrinket& trinket)
int width = 0;
int height = 0;
int channels = 0;
stbi_uc* pixels = stbi_load(resource_path(trinket.image->path).c_str(), &width, &height, &channels, STBI_rgb_alpha);
uint8_t* pixels = KAGE::Graphics::texels_load(trinket.image->path, width, height);
std::array<uint8_t, TRINKET_ICON_PIXELS * TRINKET_ICON_PIXELS * RGBA> square{};
for (int row = 0; pixels && row < std::min(height, TRINKET_ICON_PIXELS); row++)
std::copy_n(pixels + (size_t)row * width * RGBA, std::min(width, TRINKET_ICON_PIXELS) * RGBA, square.begin() + row * TRINKET_ICON_PIXELS * RGBA);