Skip to content

Conversation

@microlith57
Copy link
Member

do not merge until asset reloading is properly tested

currently, files such as image.PNG are not recognised as PNG images, whereas image.png are.
this PR makes the type guesser and texture reloader case insensitive for extensions, so those files would both be recognised as PNGs.

@microlith57
Copy link
Member Author

aparently OrdinalIgnoreCase is better than InvariantCultureIgnoreCase; i'll change that

public static void Add(string path, ModAsset metadata)
=> TryAdd(path, metadata);

private static readonly string[] METADATA_YAML_NAMES = {
Copy link
Member

Choose a reason for hiding this comment

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

metadata.yaml and multimetadata.yaml are no longer supported, I just forgot to remove them from the type guesser apparently

@microlith57 microlith57 self-assigned this Aug 8, 2024
@maddie480 maddie480 added review needed This PR needs 2 approvals to be merged (bot-managed) and removed dormant labels May 17, 2025
@maddie480-bot maddie480-bot added draft This PR is not ready for review yet (bot-managed) and removed review needed This PR needs 2 approvals to be merged (bot-managed) labels Jun 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

draft This PR is not ready for review yet (bot-managed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants