ScriptLib: register png images like AVA2 CPythonResource

The AVA2 item shop (ui/itemshop/*.png, render_target_bg.png) loaded nothing
("NOT SUPPORT FILE"), and opening it crashed in renderTarget.SetBackground.
The decoder already sniffs PNG through stb_image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-23 21:18:39 +09:00
co-authored by Claude Opus 5.5
parent 9b2e165548
commit 216600515f
+1
View File
@@ -94,6 +94,7 @@ CPythonResource::CPythonResource()
m_resManager.RegisterResourceNewFunctionPointer("dds", NewImage);
m_resManager.RegisterResourceNewFunctionPointer("jpg", NewImage);
m_resManager.RegisterResourceNewFunctionPointer("tga", NewImage);
m_resManager.RegisterResourceNewFunctionPointer("png", NewImage);
m_resManager.RegisterResourceNewFunctionPointer("bmp", NewImage);
m_resManager.RegisterResourceNewFunctionPointer("fnt", NewText);
m_resManager.RegisterResourceNewFunctionPointer("gr2", NewThing);