Skip to content

Use format auto-detection only on built-in formats (fix #5772)#5777

Merged
dacap merged 1 commit into
aseprite:betafrom
ckaiser:fix-5772
Apr 29, 2026
Merged

Use format auto-detection only on built-in formats (fix #5772)#5777
dacap merged 1 commit into
aseprite:betafrom
ckaiser:fix-5772

Conversation

@ckaiser

@ckaiser ckaiser commented Apr 29, 2026

Copy link
Copy Markdown
Member

Fixes #5772 by first checking the file by the extension and then using content detection only when the detected extension is not registered as a custom format.

@ckaiser ckaiser requested a review from dacap as a code owner April 29, 2026 08:16
@aseprite-bot

Copy link
Copy Markdown
Collaborator

clang-tidy review says "All clean, LGTM! 👍"

@dacap

dacap commented Apr 29, 2026

Copy link
Copy Markdown
Member

LGTM 👍 I'd have prefer contentFormat != UNKNOWN instead of contentFormat > UNKNOWN but it works. I'll merge it as it is so we can release this today.

@dacap dacap merged commit ee1d3de into aseprite:beta Apr 29, 2026
12 checks passed
@ckaiser ckaiser deleted the fix-5772 branch May 7, 2026 04:47
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.

New custom file format loader is skipped on open if the file looks like a built-in format

3 participants