Skip to content

add fallback for ImageManager::GetImage#3107

Merged
mercury233 merged 1 commit into
Fluorohydride:masterfrom
mercury233:patch-image-fallback
Jun 19, 2026
Merged

add fallback for ImageManager::GetImage#3107
mercury233 merged 1 commit into
Fluorohydride:masterfrom
mercury233:patch-image-fallback

Conversation

@mercury233

Copy link
Copy Markdown
Collaborator

User may use a PNG image but rename it to .jpg manually. Fallback to support this case.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a compatibility fallback in the card image loading path so that if the optimized JPEG decode routine fails (e.g., due to a mismatched/invalid JPEG payload), the engine attempts to load the same file via Irrlicht’s generic createImageFromFile loader instead.

Changes:

  • Add a fallback load path in ImageManager::GetImage when ImageUtility::LoadJpegImage(...) returns nullptr.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mercury233 mercury233 merged commit be8523d into Fluorohydride:master Jun 19, 2026
15 checks passed
@mercury233 mercury233 deleted the patch-image-fallback branch June 19, 2026 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants